fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [11460] check for required


From: Sigurd Nes
Subject: [Fmsystem-commits] [11460] check for required
Date: Wed, 13 Nov 2013 20:27:11 +0000

Revision: 11460
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11460
Author:   sigurdne
Date:     2013-11-13 20:27:08 +0000 (Wed, 13 Nov 2013)
Log Message:
-----------
check for required

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

Modified: trunk/controller/inc/class.uicheck_list.inc.php
===================================================================
--- trunk/controller/inc/class.uicheck_list.inc.php     2013-11-13 19:05:33 UTC 
(rev 11459)
+++ trunk/controller/inc/class.uicheck_list.inc.php     2013-11-13 20:27:08 UTC 
(rev 11460)
@@ -484,13 +484,25 @@
                        if($check_list_id > 0)
                        {
                                $check_list = 
$this->so->get_single($check_list_id);
-                               if(! $this->_check_for_required($check_list) )
+                               
+                               if($status == 
controller_check_list::STATUS_DONE)
                                {
-                                       $this->redirect(array('menuaction' => 
'controller.uicheck_list.edit_check_list', 'check_list_id' => $check_list_id));
+                                       if(! 
$this->_check_for_required($check_list) )
+                                       {
+                                               
$this->redirect(array('menuaction' => 
'controller.uicheck_list.edit_check_list', 'check_list_id' => $check_list_id));
+                                       }
                                }
                        }
                        else
                        {
+                               if($status == 
controller_check_list::STATUS_DONE)
+                               {
+                                       $status = 
controller_check_list::STATUS_NOT_DONE;
+                                       $completed_date_ts = 0;
+                                       $error_message =  "Status kunne ikke 
settes til utført - prøv igjen";
+                                       
phpgwapi_cache::message_set($error_message, 'error');
+                               }
+
                                $check_list = new controller_check_list();
                                $check_list->set_control_id($control_id);
                                $location_code = 
phpgw::get_var('location_code');




reply via email to

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