fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [6849] property: improve test on missing value


From: Sigurd Nes
Subject: [Fmsystem-commits] [6849] property: improve test on missing value
Date: Wed, 26 Jan 2011 10:04:45 +0000

Revision: 6849
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6849
Author:   sigurdne
Date:     2011-01-26 10:04:45 +0000 (Wed, 26 Jan 2011)
Log Message:
-----------
property: improve test on missing value

Modified Paths:
--------------
    trunk/property/inc/class.uitts.inc.php
    trunk/property/templates/base/tts.xsl

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2011-01-26 10:04:16 UTC (rev 
6848)
+++ trunk/property/inc/class.uitts.inc.php      2011-01-26 10:04:45 UTC (rev 
6849)
@@ -2080,7 +2080,7 @@
 
                                if($access_order)
                                {
-                                       if((!isset($values['make_order']) || 
!$values['make_order']) && (!isset($values['budget']) || !$values['budget']) )
+                                       if((isset($values['order_id']) && 
$values['order_id']) && (!isset($values['budget']) || !$values['budget']) )
                                        {
                                                
$receipt['error'][]=array('msg'=>lang('budget') . ': ' . lang('Missing value'));
                                        }

Modified: trunk/property/templates/base/tts.xsl
===================================================================
--- trunk/property/templates/base/tts.xsl       2011-01-26 10:04:16 UTC (rev 
6848)
+++ trunk/property/templates/base/tts.xsl       2011-01-26 10:04:45 UTC (rev 
6849)
@@ -1169,6 +1169,7 @@
                                                                </td>
                                                                <td>
                                                                        
<xsl:value-of select="value_order_id"/>
+                                                                       <input 
type="hidden" name="values[order_id]" value="{value_order_id}"></input>
                                                                </td>
                                                        </tr>
                                                        <tr>




reply via email to

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