fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [7988] frontend::ticket: fix responsibility lookup


From: Sigurd Nes
Subject: [Fmsystem-commits] [7988] frontend::ticket: fix responsibility lookup
Date: Wed, 02 Nov 2011 11:31:17 +0000

Revision: 7988
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7988
Author:   sigurdne
Date:     2011-11-02 11:31:16 +0000 (Wed, 02 Nov 2011)
Log Message:
-----------
frontend::ticket: fix responsibility lookup

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-11-02 11:27:52 UTC (rev 
7987)
+++ trunk/frontend/inc/class.uihelpdesk.inc.php 2011-11-02 11:31:16 UTC (rev 
7988)
@@ -537,7 +537,9 @@
                                $GLOBALS['phpgw']->common->phpgw_exit();
                        }
 
-                       if(isset($values['save']))
+                       $cat_id = isset($values['cat_id']) && $values['cat_id'] 
? $values['cat_id'] : $default_cat;
+
+                       if(isset($values['save']))
                        {
                                foreach($values as $key => $value)
                                {
@@ -558,11 +560,11 @@
                                                $i++;
                                        }
 
-                                       $assignedto = 
execMethod('property.boresponsible.get_responsible', array('location' => 
$location, 'cat_id' => $default_cat));
+                                       $assignedto = 
execMethod('property.boresponsible.get_responsible', array('location' => 
$location, 'cat_id' => $cat_id));
 
                                        if(!$assignedto)
                                        {
-                                               $default_group = 
$config->config_data['tts_default_group'];
+                                               $default_group = 
(int)$config->config_data['tts_default_group'];
                                        }
                                        else
                                        {
@@ -572,7 +574,7 @@
                                        $ticket = array(
                                                'origin'    => null,
                                                'origin_id' => null,
-                                               'cat_id'    => 
$values['cat_id'],
+                                               'cat_id'    => $cat_id,
                                                'group_id'  => ($default_group 
? $default_group : null),
                                                'assignedto'=> $assignedto,
                                                'priority'  => 3,




reply via email to

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