[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [8536] property: more on bulk update
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [8536] property: more on bulk update |
Date: |
Mon, 09 Jan 2012 10:18:39 +0000 |
Revision: 8536
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=8536
Author: sigurdne
Date: 2012-01-09 10:18:39 +0000 (Mon, 09 Jan 2012)
Log Message:
-----------
property: more on bulk update
Modified Paths:
--------------
trunk/property/inc/class.soproject.inc.php
Modified: trunk/property/inc/class.soproject.inc.php
===================================================================
--- trunk/property/inc/class.soproject.inc.php 2012-01-09 10:14:45 UTC (rev
8535)
+++ trunk/property/inc/class.soproject.inc.php 2012-01-09 10:18:39 UTC (rev
8536)
@@ -1376,6 +1376,11 @@
$this->db->transaction_begin();
foreach ($ids as $id)
{
+ if(!$id)
+ {
+ continue;
+ }
+
$this->db->query("SELECT status FROM fm_project
WHERE id = '{$id}'",__LINE__,__FILE__);
$this->db->next_record();
$old_status = $this->db->f('status');
@@ -1422,6 +1427,11 @@
$this->db->transaction_begin();
foreach ($ids as $id)
{
+ if(!$id)
+ {
+ continue;
+ }
+
$this->db->query("SELECT status, vendor_id FROM
fm_workorder WHERE id = '{$id}'",__LINE__,__FILE__);
$this->db->next_record();
$old_status = $this->db->f('status');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [8536] property: more on bulk update,
Sigurd Nes <=