2013-11-21 Sergio Martin <sergio.martin@artica.es>
* include/functions_events.php: Fix the combo of user to assign an event to one of them. Incident #409 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9111 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
75758b4aba
commit
a3d86f0bcf
|
@ -1,3 +1,8 @@
|
|||
2013-11-21 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_events.php: Fix the combo of user to assign an
|
||||
event to one of them. Incident #409
|
||||
|
||||
2013-11-21 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* godmode/modules/manage_network_components_form.php: Fixed jquery
|
||||
|
|
|
@ -1644,8 +1644,12 @@ function events_page_responses ($event) {
|
|||
// Owner
|
||||
$data = array();
|
||||
$data[0] = __('Change owner');
|
||||
|
||||
$users = groups_get_users(array_keys(users_get_groups(false, "EM", false)));
|
||||
// Owner change can be done to users that belong to the event group with ER permission
|
||||
$profiles_view_events = db_get_all_rows_filter('tperfil', array('event_view' => '1'), 'id_perfil');
|
||||
foreach($profiles_view_events as $k => $v) {
|
||||
$profiles_view_events[$k] = reset($v);
|
||||
}
|
||||
$users = groups_get_users($event['id_grupo'], array('id_perfil' => $profiles_view_events), true);
|
||||
|
||||
foreach($users as $u) {
|
||||
$owners[$u['id_user']] = $u['fullname'];
|
||||
|
|
Loading…
Reference in New Issue