[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [6569] Frontend: More on roles
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [6569] Frontend: More on roles |
Date: |
Wed, 10 Nov 2010 10:37:41 +0000 |
Revision: 6569
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6569
Author: sigurdne
Date: 2010-11-10 10:37:41 +0000 (Wed, 10 Nov 2010)
Log Message:
-----------
Frontend: More on roles
Modified Paths:
--------------
trunk/frontend/inc/class.uihelpdesk.inc.php
Modified: trunk/frontend/inc/class.uihelpdesk.inc.php
===================================================================
--- trunk/frontend/inc/class.uihelpdesk.inc.php 2010-11-10 10:09:56 UTC (rev
6568)
+++ trunk/frontend/inc/class.uihelpdesk.inc.php 2010-11-10 10:37:41 UTC (rev
6569)
@@ -538,7 +538,6 @@
// Read default assign-to-group from
config
$config =
CreateObject('phpgwapi.config', 'frontend');
$config->read();
- $default_group =
$config->config_data['tts_default_group'];
$default_cat =
$config->config_data['tts_default_cat'] ?
$config->config_data['tts_default_cat'] : 0;
if(!$default_cat)
@@ -553,12 +552,23 @@
'loc2' =>
$location_details['loc2']
);
+ $assignedto =
execMethod('property.boresponsible.get_responsible', array('location' =>
$location, 'cat_id' => $default_cat));
+
+ if(!$assignedto)
+ {
+ $default_group =
$config->config_data['tts_default_group'];
+ }
+ else
+ {
+ $default_group = 0;
+ }
+
$ticket = array(
'origin' => null,
'origin_id' => null,
'cat_id' => $default_cat,
'group_id' => ($default_group
? $default_group : null),
- 'assignedto'=>
execMethod('property.boresponsible.get_responsible', array('location' =>
$location, 'cat_id' => $default_cat)),
+ 'assignedto'=> $assignedto,
'priority' => 3,
'status' => 'O', // O = Open
'subject' => $values['title'],
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [6569] Frontend: More on roles,
Sigurd Nes <=