[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [17424] controller: prepare for set default for requi
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [17424] controller: prepare for set default for required |
Date: |
Sun, 10 Dec 2017 12:51:34 -0500 (EST) |
Revision: 17424
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17424
Author: sigurdne
Date: 2017-12-10 12:51:34 -0500 (Sun, 10 Dec 2017)
Log Message:
-----------
controller: prepare for set default 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 2017-12-10 12:18:12 UTC
(rev 17423)
+++ trunk/controller/inc/class.uicheck_list.inc.php 2017-12-10 17:51:34 UTC
(rev 17424)
@@ -451,7 +451,7 @@
// $check_list_locked = true;
}
// echo 'tid: '.$current_time.'abs: '.$absolute_deadline;
-
+
$repeat_descr = '';
if ($serie =
$this->so_control->get_serie($check_list->get_serie_id()))
{
@@ -1107,7 +1107,7 @@
{
if( $submit_ok ||
$this->_check_for_required($check_list))
{
- $check_list->set_status($status);
+ $check_list->set_status($status);
}
}
else if ($status ==
controller_check_list::STATUS_CANCELED && !$error)
@@ -1707,14 +1707,14 @@
}
+
/**
- * Check for required items on all groups and for all
components registered to the location.
+ * Get required items on all groups and for all components
registered to the location.
* @param object $check_list
- * @return bool
- * */
- private function _check_for_required( $check_list )
+ * @return array
+ */
+ private function _get_required_control_items( $check_list )
{
- $ok = true;
$control =
$this->so_control->get_single($check_list->get_control_id());
$saved_control_groups =
$this->so_control_group_list->get_control_groups_by_control($control->get_id());
@@ -1736,9 +1736,21 @@
}
}
}
+ return $required_control_items;
+ }
+ /**
+ * Check for required items on all groups and for all
components registered to the location.
+ * @param object $check_list
+ * @return bool
+ * */
+ private function _check_for_required( $check_list )
+ {
+ $ok = true;
+
+ $required_control_items =
$this->_get_required_control_items($check_list);
+
$components_at_location = array();
- $control_groups_with_items_array = array();
$component_id = $check_list->get_component_id();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [17424] controller: prepare for set default for required,
sigurdne <=