phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] property/inc class.uiagreement.inc.php class.ui...


From: Sigurd Nes
Subject: [Phpgroupware-cvs] property/inc class.uiagreement.inc.php class.ui...
Date: Sun, 08 Oct 2006 12:04:56 +0000

CVSROOT:        /sources/phpgroupware
Module name:    property
Changes by:     Sigurd Nes <sigurdne>   06/10/08 12:04:56

Modified files:
        inc            : class.uiagreement.inc.php 
                         class.uir_agreement.inc.php 
                         class.uis_agreement.inc.php 

Log message:
        preserve values for custom attributes in case of posting wtih errors

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.uiagreement.inc.php?cvsroot=phpgroupware&r1=1.25&r2=1.26
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.uir_agreement.inc.php?cvsroot=phpgroupware&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/property/inc/class.uis_agreement.inc.php?cvsroot=phpgroupware&r1=1.31&r2=1.32

Patches:
Index: class.uiagreement.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.uiagreement.inc.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- class.uiagreement.inc.php   5 Oct 2006 11:33:53 -0000       1.25
+++ class.uiagreement.inc.php   8 Oct 2006 12:04:55 -0000       1.26
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage agreement
-       * @version $Id: class.uiagreement.inc.php,v 1.25 2006/10/05 11:33:53 
sigurdne Exp $
+       * @version $Id: class.uiagreement.inc.php,v 1.26 2006/10/08 12:04:55 
sigurdne Exp $
        */
 
        /**
@@ -726,6 +726,12 @@
 
                        $agreement = 
$this->bo->read_single(array('agreement_id'=>$id));
 
+                       /* Preserve attribute values from post */
+                       if(isset($receipt['error']) && (isset( 
$values_attribute) && is_array( $values_attribute)))
+                       {
+                               $agreement = 
$this->bocommon->preserve_attribute_values($agreement,$values_attribute);
+                       }
+
                        $cal_info       = $this->bocommon->jscalendar();
                        $jsDateFormat=$cal_info['jsDateFormat'];
 

Index: class.uir_agreement.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.uir_agreement.inc.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- class.uir_agreement.inc.php 5 Oct 2006 11:33:53 -0000       1.18
+++ class.uir_agreement.inc.php 8 Oct 2006 12:04:55 -0000       1.19
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage agreement
-       * @version $Id: class.uir_agreement.inc.php,v 1.18 2006/10/05 11:33:53 
sigurdne Exp $
+       * @version $Id: class.uir_agreement.inc.php,v 1.19 2006/10/08 12:04:55 
sigurdne Exp $
        */
 
        /**
@@ -680,6 +680,12 @@
 
                        $r_agreement = 
$this->bo->read_single(array('r_agreement_id'=>$id));
 
+                       /* Preserve attribute values from post */
+                       if(isset($receipt['error']) && (isset( 
$values_attribute) && is_array( $values_attribute)))
+                       {
+                               $r_agreement = 
$this->bocommon->preserve_attribute_values($r_agreement,$values_attribute);
+                       }
+
                        $cal_info       = $this->bocommon->jscalendar();
                        $jsDateFormat=$cal_info['jsDateFormat'];
 

Index: class.uis_agreement.inc.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/class.uis_agreement.inc.php,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -b -r1.31 -r1.32
--- class.uis_agreement.inc.php 5 Oct 2006 11:33:53 -0000       1.31
+++ class.uis_agreement.inc.php 8 Oct 2006 12:04:55 -0000       1.32
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package property
        * @subpackage agreement
-       * @version $Id: class.uis_agreement.inc.php,v 1.31 2006/10/05 11:33:53 
sigurdne Exp $
+       * @version $Id: class.uis_agreement.inc.php,v 1.32 2006/10/08 12:04:55 
sigurdne Exp $
        */
 
        /**
@@ -650,6 +650,12 @@
 
                        $s_agreement = 
$this->bo->read_single(array('s_agreement_id'=>$id));
 
+                       /* Preserve attribute values from post */
+                       if(isset($receipt['error']) && (isset( 
$values_attribute) && is_array( $values_attribute)))
+                       {
+                               $s_agreement = 
$this->bocommon->preserve_attribute_values($s_agreement,$values_attribute);
+                       }
+
                        $cal_info       = $this->bocommon->jscalendar();
                        $jsDateFormat=$cal_info['jsDateFormat'];
 




reply via email to

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