[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] sms/bin set_workorder_status.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] sms/bin set_workorder_status.php |
Date: |
Mon, 21 Aug 2006 13:33:27 +0000 |
CVSROOT: /sources/phpgroupware
Module name: sms
Changes by: Sigurd Nes <sigurdne> 06/08/21 13:33:27
Modified files:
bin : set_workorder_status.php
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/sms/bin/set_workorder_status.php?cvsroot=phpgroupware&r1=1.2&r2=1.3
Patches:
Index: set_workorder_status.php
===================================================================
RCS file: /sources/phpgroupware/sms/bin/set_workorder_status.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- set_workorder_status.php 21 Jun 2006 11:37:31 -0000 1.2
+++ set_workorder_status.php 21 Aug 2006 13:33:27 -0000 1.3
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package sms
* @subpackage sms
- * @version $Id: set_workorder_status.php,v 1.2 2006/06/21 11:37:31
sigurdne Exp $
+ * @version $Id: set_workorder_status.php,v 1.3 2006/08/21 13:33:27
sigurdne Exp $
*/
/**
@@ -23,20 +23,20 @@
);
$param = explode(' ' , $command_param);
- $workorder_id = $param[0];
- $status = $status_code[intval($param[1])];
-// _debug_array($param);
-// _debug_array($status);
+ if (ctype_digit($param[0]) && ctype_digit($param[1]))
+ {
+ $workorder_id = $param[0];
+ $status = $status_code[$param[1]];
$this->db->query("SELECT status FROM fm_workorder where
id='$workorder_id'",__LINE__,__FILE__);
if($this->db->next_record())
{
$this->db->query("UPDATE fm_workorder set status = '$status'
WHERE id='$workorder_id'" ,__LINE__,__FILE__);
$historylog =
CreateObject('property.historylog','workorder');
-// temporary - fix this
+ // temporary - fix this
$historylog->account = 6;
$historylog->add('S',$workorder_id,$status . ': endret av: ' .
$sms_sender);
$command_output = 'success';
}
-
+ }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] sms/bin set_workorder_status.php,
Sigurd Nes <=