fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14300] more on controller


From: Sigurd Nes
Subject: [Fmsystem-commits] [14300] more on controller
Date: Sun, 08 Nov 2015 15:31:49 +0000

Revision: 14300
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14300
Author:   sigurdne
Date:     2015-11-08 15:31:48 +0000 (Sun, 08 Nov 2015)
Log Message:
-----------
more on controller

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

Modified: trunk/controller/inc/class.uicase.inc.php
===================================================================
--- trunk/controller/inc/class.uicase.inc.php   2015-11-08 15:19:15 UTC (rev 
14299)
+++ trunk/controller/inc/class.uicase.inc.php   2015-11-08 15:31:48 UTC (rev 
14300)
@@ -826,14 +826,18 @@
                        }
 
                        $case_id = phpgw::get_var('case_id');
-                       $check_list_id = phpgw::get_var('check_list_id');
-                               
-                       $status = $this->so->delete($case_id);
+
+                       $case = $this->so->get_single($case_id);
+                       
$case->set_status(controller_check_item_case::STATUS_CLOSED);
+
+                       $status = false;
+                       if($this->so->store($case))
+                       {
+                               $status = $this->so->delete($case_id);
+                       }
                
                        if($status)
                        {
-
-
                                return json_encode( array( "status" => 
"deleted" ) );
                        }
                        else
@@ -850,7 +854,6 @@
                        }
 
                        $case_id = phpgw::get_var('case_id');
-                       $check_list_id = phpgw::get_var('check_list_id');
                                
                        $case = $this->so->get_single($case_id);
                        
$case->set_status(controller_check_item_case::STATUS_CLOSED);




reply via email to

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