Fix #142 : add ability to apply template from user rights view

This commit is contained in:
Romain Neutron
2012-01-03 13:49:13 +01:00
parent 9c15b5d900
commit 745d27b821
4 changed files with 57 additions and 21 deletions

View File

@@ -179,13 +179,19 @@ class module_admin_route_users_edit
}
}
$query = new User_Query($appbox);
$templates = $query
->only_templates(true)
->execute()->get_results();
$this->users_datas = $rs;
$out = array(
'datas' => $this->users_datas,
'users' => $this->users,
'users_serial' => implode(';', $this->users),
'base_id' => $this->base_id,
'main_user' => null
'main_user' => null,
'templates'=>$templates
);
if (count($this->users) == 1)