[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [9846] property: get all users to choose from
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [9846] property: get all users to choose from |
Date: |
Tue, 14 Aug 2012 08:38:23 +0000 |
Revision: 9846
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=9846
Author: sigurdne
Date: 2012-08-14 08:38:18 +0000 (Tue, 14 Aug 2012)
Log Message:
-----------
property: get all users to choose from
Modified Paths:
--------------
trunk/property/inc/class.uilocation.inc.php
Modified: trunk/property/inc/class.uilocation.inc.php
===================================================================
--- trunk/property/inc/class.uilocation.inc.php 2012-08-14 07:15:32 UTC (rev
9845)
+++ trunk/property/inc/class.uilocation.inc.php 2012-08-14 08:38:18 UTC (rev
9846)
@@ -1249,7 +1249,21 @@
$default_value = array
('id'=>'','name'=>lang('no role'));
array_unshift
($values_combo_box[4],$default_value);
- $values_combo_box[5] =
$this->bocommon->get_user_list_right2('filter',PHPGW_ACL_READ,$this->user_id,".location.{$type_id}");
+// $values_combo_box[5] =
$this->bocommon->get_user_list_right2('filter',PHPGW_ACL_READ,$this->user_id,".location.{$type_id}");
+ $_users =
$GLOBALS['phpgw']->accounts->get_list('accounts', -1, 'ASC',
'account_lastname', '', -1);
+ $values_combo_box[5] = array();
+ foreach($_users as $_user)
+ {
+ $values_combo_box[5][] = array
+ (
+ 'id' => $_user->id,
+ 'name' => $_user->__toString(),
+
+ );
+ }
+ unset($_users);
+ unset($_user);
+
array_unshift
($values_combo_box[5],array('id'=>
(-1*$GLOBALS['phpgw_info']['user']['account_id']),'name'=>lang('mine roles')));
$default_value =
array('id'=>'','name'=>lang('no user'));
array_unshift
($values_combo_box[5],$default_value);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [9846] property: get all users to choose from,
Sigurd Nes <=