fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7732] frontend: add ticket at correct level


From: Sigurd Nes
Subject: [Fmsystem-commits] [7732] frontend: add ticket at correct level
Date: Tue, 27 Sep 2011 10:43:39 +0000

Revision: 7732
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7732
Author:   sigurdne
Date:     2011-09-27 10:43:38 +0000 (Tue, 27 Sep 2011)
Log Message:
-----------
frontend: add ticket at correct level

Modified Paths:
--------------
    trunk/frontend/inc/class.uihelpdesk.inc.php

Modified: trunk/frontend/inc/class.uihelpdesk.inc.php
===================================================================
--- trunk/frontend/inc/class.uihelpdesk.inc.php 2011-09-27 07:15:18 UTC (rev 
7731)
+++ trunk/frontend/inc/class.uihelpdesk.inc.php 2011-09-27 10:43:38 UTC (rev 
7732)
@@ -549,11 +549,14 @@
 
                                if(!$missingfields && !phpgw::get_var('added'))
                                {
-                                       $location  = array
-                                       (
-                                               'loc1'  => 
$location_details['loc1'],
-                                               'loc2'  => 
$location_details['loc2']
-                                       );
+                                       $location = array();
+                                       $_location_arr = explode('-', 
$this->location_code);
+                                       $i = 1;
+                                       foreach($_location_arr as $_loc)
+                                       {
+                                               $location["loc{$i}"] = $_loc;
+                                               $i++;
+                                       }
 
                                        $assignedto = 
execMethod('property.boresponsible.get_responsible', array('location' => 
$location, 'cat_id' => $default_cat));
 
@@ -579,6 +582,7 @@
                                                'apply'     => lang('Apply'),
                                                'contact_id'=> 0,
                                                'location'  => $location,
+                                               'location_code' => 
$this->location_code,
                                                'street_name'   => 
$location_details['street_name'],
                                                'street_number' => 
$location_details['street_number'],
                                                'location_name' => 
$location_details['loc1_name'],




reply via email to

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