[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [14595] ticket: save incoming values...
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [14595] ticket: save incoming values... |
Date: |
Mon, 14 Dec 2015 12:34:45 +0000 |
Revision: 14595
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14595
Author: sigurdne
Date: 2015-12-14 12:34:39 +0000 (Mon, 14 Dec 2015)
Log Message:
-----------
ticket: save incoming values...
Modified Paths:
--------------
trunk/property/inc/class.uitts.inc.php
Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php 2015-12-14 12:01:42 UTC (rev
14594)
+++ trunk/property/inc/class.uitts.inc.php 2015-12-14 12:34:39 UTC (rev
14595)
@@ -2436,8 +2436,6 @@
$access_order = true;
}
- $ticket = $this->bo->read_single($id, $values);
-
if(isset($values['save']))
{
if(!$this->acl_edit)
@@ -2489,10 +2487,13 @@
if($access_order)
{
- if(!$ticket['budget'] &&
((isset($values['order_id']) && $values['order_id']) &&
(!isset($values['budget']) || !$values['budget'])) )
+ //test for budget
+ $_ticket = $this->bo->read_single($id);
+ if(!$_ticket['budget'] &&
((isset($values['order_id']) && $values['order_id']) &&
(!isset($values['budget']) || !$values['budget'])) )
{
$receipt['error'][]=array('msg'=>lang('budget') . ': ' . lang('Missing value'));
}
+ unset($_ticket);
$sogeneric =
CreateObject('property.sogeneric');
$sogeneric->get_location_info('ticket_status',false);
@@ -2602,6 +2603,7 @@
$values =
$this->bocommon->preserve_attribute_values($values,$values_attribute);
}
+ $ticket = $this->bo->read_single($id, $values);
if (isset($ticket['attributes']) &&
is_array($ticket['attributes']))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [14595] ticket: save incoming values...,
Sigurd Nes <=