fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [13692] more on controller


From: Sigurd Nes
Subject: [Fmsystem-commits] [13692] more on controller
Date: Wed, 05 Aug 2015 11:04:23 +0000

Revision: 13692
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13692
Author:   sigurdne
Date:     2015-08-05 11:04:21 +0000 (Wed, 05 Aug 2015)
Log Message:
-----------
more on controller

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

Modified: trunk/controller/inc/class.uicheck_list.inc.php
===================================================================
--- trunk/controller/inc/class.uicheck_list.inc.php     2015-08-03 10:53:03 UTC 
(rev 13691)
+++ trunk/controller/inc/class.uicheck_list.inc.php     2015-08-05 11:04:21 UTC 
(rev 13692)
@@ -707,7 +707,7 @@
                        {
                                
$check_list->set_delta_billable_hours($billable_hours);
                        }
-                       if ( $this->_check_for_required($check_list) && !$error)
+                       if ( $status == controller_check_list::STATUS_DONE && 
$this->_check_for_required($check_list) && !$error)
                        {
                                $check_list->set_status($status);
                        }

Modified: trunk/controller/inc/model/class.check_list.inc.php
===================================================================
--- trunk/controller/inc/model/class.check_list.inc.php 2015-08-03 10:53:03 UTC 
(rev 13691)
+++ trunk/controller/inc/model/class.check_list.inc.php 2015-08-05 11:04:21 UTC 
(rev 13692)
@@ -79,6 +79,8 @@
                public function __construct(int $id = null)
                {
                        $this->id = (int)$id;
+                       //intital status
+                       $this->status = self::STATUS_NOT_DONE;
                }
                
                public function set_id($id)




reply via email to

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