phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] demo inc/class.sodemo.inc.php templates/base/at...


From: Sigurd Nes
Subject: [Phpgroupware-cvs] demo inc/class.sodemo.inc.php templates/base/at...
Date: Fri, 20 Apr 2007 09:11:05 +0000

CVSROOT:        /sources/phpgroupware
Module name:    demo
Changes by:     Sigurd Nes <sigurdne>   07/04/20 09:11:05

Modified files:
        inc            : class.sodemo.inc.php 
        templates/base : attributes_form.xsl 

Log message:
        use column names for custom fields when saving to database

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/demo/inc/class.sodemo.inc.php?cvsroot=phpgroupware&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/demo/templates/base/attributes_form.xsl?cvsroot=phpgroupware&r1=1.4&r2=1.5

Patches:
Index: inc/class.sodemo.inc.php
===================================================================
RCS file: /sources/phpgroupware/demo/inc/class.sodemo.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- inc/class.sodemo.inc.php    27 Dec 2006 11:04:41 -0000      1.6
+++ inc/class.sodemo.inc.php    20 Apr 2007 09:11:05 -0000      1.7
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package demo
        * @subpackage demo
-       * @version $Id: class.sodemo.inc.php,v 1.6 2006/12/27 11:04:41 sigurdne 
Exp $
+       * @version $Id: class.sodemo.inc.php,v 1.7 2007/04/20 09:11:05 sigurdne 
Exp $
        */
 
        /**
@@ -455,7 +455,7 @@
                                                        {
                                                                
if($entry['value'] == $entry['value2'])
                                                                {
-                                                                       $cols[] 
= $entry['name'];
+                                                                       $cols[] 
= $entry['column_name'];
                                                                        $vals[] 
= md5($entry['value']);
                                                                }
                                                                else
@@ -465,7 +465,7 @@
                                                        }
                                                        else
                                                        {
-                                                               $cols[] = 
$entry['name'];
+                                                               $cols[] = 
$entry['column_name'];
                                                                $vals[] = 
$entry['value'];
                                                        }
 
@@ -538,7 +538,7 @@
                                                        {
                                                                
if($entry['value'] == $entry['value2'])
                                                                {
-                                                                       
$value_set[$entry['name']]      = md5($entry['value']);
+                                                                       
$value_set[$entry['column_name']]       = md5($entry['value']);
                                                                }
                                                                else
                                                                {
@@ -548,7 +548,7 @@
                                                }
                                                else
                                                {
-                                                       
$value_set[$entry['name']]      = $entry['value'];
+                                                       
$value_set[$entry['column_name']]       = $entry['value'];
                                                }
                                        }
                                }

Index: templates/base/attributes_form.xsl
===================================================================
RCS file: /sources/phpgroupware/demo/templates/base/attributes_form.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- templates/base/attributes_form.xsl  9 Jan 2007 08:04:12 -0000       1.4
+++ templates/base/attributes_form.xsl  20 Apr 2007 09:11:05 -0000      1.5
@@ -1,4 +1,4 @@
-<!-- $Id: attributes_form.xsl,v 1.4 2007/01/09 08:04:12 sigurdne Exp $ -->
+<!-- $Id: attributes_form.xsl,v 1.5 2007/04/20 09:11:05 sigurdne Exp $ -->
 
        <xsl:template name="attributes_form">
                <xsl:apply-templates select="attributes_values"/>
@@ -50,7 +50,7 @@
                                <td align="left">
                                        <xsl:choose>
                                                <xsl:when test="name!=''">
-                                                       <input type="hidden" 
name="values_attribute[{counter}][name]" value="{name}"></input>
+                                                       <input type="hidden" 
name="values_attribute[{counter}][column_name]" value="{column_name}"></input>
                                                        <input type="hidden" 
name="values_attribute[{counter}][datatype]" value="{datatype}"></input>
                                                        <input type="hidden" 
name="values_attribute[{counter}][history]" value="{history}"></input>
                                                        <input type="hidden" 
name="values_attribute[{counter}][attrib_id]" value="{id}"></input>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]