fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [9312]


From: Torstein
Subject: [Fmsystem-commits] [9312]
Date: Tue, 08 May 2012 09:54:29 +0000

Revision: 9312
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9312
Author:   vator
Date:     2012-05-08 09:54:28 +0000 (Tue, 08 May 2012)
Log Message:
-----------


Modified Paths:
--------------
    trunk/controller/inc/class.uicase.inc.php

Modified: trunk/controller/inc/class.uicase.inc.php
===================================================================
--- trunk/controller/inc/class.uicase.inc.php   2012-05-08 09:14:45 UTC (rev 
9311)
+++ trunk/controller/inc/class.uicase.inc.php   2012-05-08 09:54:28 UTC (rev 
9312)
@@ -286,8 +286,8 @@
                        // Registers message and updates check items with 
message ticket id
                        foreach($case_ids as $case_id){
                                $case = $this->so->get_single($case_id);
-                               $case->set_location_id($location_id);
-                               $case->set_location_item_id($message_ticket_id);
+                               $case->set_location_id($message_ticket_id);
+                               $case->set_location_item_id($location_id);
                                $this->so->store($case);
                        }                       
                        
@@ -313,7 +313,6 @@
                                                
                        $botts = CreateObject('property.botts',true);
                        $message_ticket = 
$botts->read_single($message_ticket_id);
-                       print_r($message_ticket);
                        $catsObj = CreateObject('phpgwapi.categories', -1, 
'property', '.ticket');
                        $catsObj->supress_info = true;
                        
@@ -353,14 +352,17 @@
                                        $this->so->update( $case );
                                }
                                
+                               // Gets first case of cases related to the 
message  
                                $case = $cases_array[0];
-                               
+
+                               // Gets check_item from case
                                $check_item_id = $case->get_check_item_id();
-       
+
+                               // Gets check_list from check_item
                                $check_item = $this->so_check_item->get_single( 
$check_item_id );
                                $check_list_id = 
$check_item->get_check_list_id(); 
                                
-                               // Updates status for check list 
+                               // Updates number of open cases for check list 
                                $status_checker = new status_checker();
                                $status_checker->update_check_list_status( 
$check_list_id );    
                        }




reply via email to

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