Skip to content

Commit

Permalink
technician for itil category, see #3871
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Sep 11, 2012
1 parent 8cf1559 commit 16e1384
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
12 changes: 8 additions & 4 deletions inc/commondropdown.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,14 @@ function showForm($ID, $options=array()) {
}
switch ($field['type']) {
case 'UserDropdown' :
User::dropdown(array('name' => $field['name'],
'value' => $this->fields[$field['name']],
'right' => 'interface',
'entity' => $this->fields["entities_id"]));
$param = array('name' => $field['name'],
'value' => $this->fields[$field['name']],
'right' => 'interface',
'entity' => $this->fields["entities_id"]);
if (isset($field['right'])) {
$params['right'] = $field['right'];
}
User::dropdown($param);

break;

Expand Down
1 change: 1 addition & 0 deletions inc/itilcategory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function getAdditionalFields() {
array('name' => 'users_id',
'label' => __('Technician in charge of the hardware'),
'type' => 'UserDropdown',
'right' => 'own_ticket',
'list' => true),
array('name' => 'groups_id',
'label' => __('Group in charge of the hardware'),
Expand Down

0 comments on commit 16e1384

Please sign in to comment.