2011-07-26 Tomas Palacios <tomas.palacios@artica.es>
* godmode/massive: fixed a bug regarding bad warnings in massive agents and profiles operations. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4627 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d040ba901e
commit
acf10a3f2b
|
@ -57,12 +57,19 @@ if ($delete_profiles) {
|
|||
foreach($profiles_id as $profile) {
|
||||
foreach($groups_id as $group) {
|
||||
foreach($users_id as $id_up) {
|
||||
$user = (string) db_get_value_filter ('id_usuario', 'tusuario_perfil', array('id_up' => $id_up));
|
||||
if ($id_up == 0){
|
||||
echo '<h3 class="error">'.__('Not deleted. You must select an existing user').'</h3>';
|
||||
$result="";
|
||||
}
|
||||
else{
|
||||
$user = (string) db_get_value_filter ('id_usuario', 'tusuario_perfil', array('id_up' => $id_up));
|
||||
|
||||
db_pandora_audit("User management",
|
||||
"Deleted profile for user ".io_safe_input($user));
|
||||
db_pandora_audit("User management",
|
||||
"Deleted profile for user ".io_safe_input($user));
|
||||
|
||||
$result = profile_delete_user_profile ($user, $id_up);
|
||||
$result = profile_delete_user_profile ($user, $id_up);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,7 +163,9 @@ if ($update_agents) {
|
|||
db_pandora_audit("Masive management", "Update agent " . $id_agent, false, false, json_encode($fields));
|
||||
}
|
||||
else {
|
||||
db_pandora_audit("Masive management", "Try to update agent " . $id_agent, false, false, json_encode($fields));
|
||||
if (isset ($id_agent)) {
|
||||
db_pandora_audit("Masive management", "Try to update agent " . $id_agent, false, false, json_encode($fields));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue