fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [10817] Deleted code in function add_case that checks


From: Torstein
Subject: [Fmsystem-commits] [10817] Deleted code in function add_case that checks if a specific component exists on a location
Date: Thu, 14 Feb 2013 10:08:33 +0000

Revision: 10817
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10817
Author:   vator
Date:     2013-02-14 10:08:32 +0000 (Thu, 14 Feb 2013)
Log Message:
-----------
Deleted code in function add_case that checks if a specific component exists on 
a location

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-02-14 10:04:29 UTC 
(rev 10816)
+++ trunk/controller/inc/class.uicheck_list.inc.php     2013-02-14 10:08:32 UTC 
(rev 10817)
@@ -668,46 +668,7 @@
                                }
                        }
                        
-                       /* ================  Ikke slett!!! Kode som henter ut  
utstyr basert på lokasjon  ==================       
                        
-                       //get control items based on control group/component 
connection
-                       $control_groups_for_control = 
$this->so_control_group->get_control_group_ids_for_control($control->get_id());
-                       //_debug_array($control_groups_for_control);
-
-                       foreach($control_groups_for_control as $cg)
-                       {
-                               $components_for_control_group[] = array($cg => 
$this->so_control_group->get_components_for_control_group($cg));
-                       }
-                       
-                       //_debug_array($components_for_control_group);
-                       
-                       $control_group_check_items = array();
-                       foreach($components_for_control_group as $cg_components)
-                       {
-                               foreach($control_groups_for_control as 
$cg_control)
-                               {
-                                       $components = 
$cg_components[$cg_control];
-                                       //_debug_array($components);
-                                       $location_has_component = false;
-                                       foreach($components as $comp)
-                                       {
-                                               if(!$location_has_component)
-                                               {
-                                                       //check if current 
location has component
-                                                       $location_has_component 
= $this->so_control_item->location_has_component($comp, 
$check_list->get_location_code);
-                                               }
-                                       }
-                                       if($location_has_component)
-                                       {
-                                               //the check items for the 
control group shall be added
-                                               $check_items = 
$this->so_control_item->get_items_for_control_group($control->get_id(), 
$cg_control);
-                                               $control_group_check_items[] = 
$check_items;
-                                       }
-                               }
-                       }
-                       
=====================================================================*/
-                       //_debug_array($control_group_check_items);
-                       
                        $level = $this->get_location_level($location_code);
                        $year = date("Y", $check_list->get_deadline());
                        $month = date("n", $check_list->get_deadline());




reply via email to

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