fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [17512] property: validation of type


From: sigurdne
Subject: [Fmsystem-commits] [17512] property: validation of type
Date: Tue, 9 Jan 2018 04:47:38 -0500 (EST)

Revision: 17512
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17512
Author:   sigurdne
Date:     2018-01-09 04:47:37 -0500 (Tue, 09 Jan 2018)
Log Message:
-----------
property: validation of type

Modified Paths:
--------------
    trunk/property/inc/class.uitts.inc.php

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2018-01-09 09:21:12 UTC (rev 
17511)
+++ trunk/property/inc/class.uitts.inc.php      2018-01-09 09:47:37 UTC (rev 
17512)
@@ -2930,6 +2930,7 @@
                        $year = date('Y') - 1;
                        $limit = $year + 4;
 
+                       $year_list = array();
                        while ($year < $limit)
                        {
                                $year_list[] = array
@@ -2999,7 +3000,7 @@
                                'value_unspsc_code_name' => 
$this->_get_unspsc_code_name($unspsc_code),
                                'value_budget' => $ticket['budget'],
                                'value_actual_cost' => $ticket['actual_cost'],
-                               'year_list' => array('options' => 
$this->bocommon->select_list($ticket['actual_cost_year'] ? 
$ticket['actual_cost_year'] : date('Y'), $year_list)),
+                               'year_list' => array('options' => 
$this->bocommon->select_list((int)$ticket['actual_cost_year'] ? 
$ticket['actual_cost_year'] : (int)date('Y'), $year_list)),
                                'period_list' => array('options' => 
execMethod('property.boinvoice.period_list', date('Ym'))),
                                'need_approval' => $need_approval,
                                'contact_data' => $contact_data,




reply via email to

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