Merge branch '2877_Mejora_audit_log' into 'develop'
Fixed Audit log in profiles, collections and policies See merge request artica/pandorafms!1876
This commit is contained in:
commit
abdd33949d
|
@ -175,7 +175,7 @@ if ($id_profile || $new_profile) {
|
||||||
$vconsole_management = (bool) $profile["vconsole_management"];
|
$vconsole_management = (bool) $profile["vconsole_management"];
|
||||||
|
|
||||||
$id_audit = db_pandora_audit("User management",
|
$id_audit = db_pandora_audit("User management",
|
||||||
"Edit profile ". $name);
|
"Edit profile ". io_safe_output($name));
|
||||||
enterprise_include_once('include/functions_audit.php');
|
enterprise_include_once('include/functions_audit.php');
|
||||||
|
|
||||||
$info = 'Name: ' . $name .
|
$info = 'Name: ' . $name .
|
||||||
|
|
|
@ -74,7 +74,7 @@ if ($delete_profile) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
db_pandora_audit("Profile management",
|
db_pandora_audit("Profile management",
|
||||||
"Delete profile ". $profile['name']);
|
"Delete profile ". io_safe_output($profile['name']));
|
||||||
ui_print_success_message(__('Successfully deleted'));
|
ui_print_success_message(__('Successfully deleted'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +187,7 @@ if ($update_profile) {
|
||||||
"'.get_product_name().' Management":"'.$pandora_management.'"}';
|
"'.get_product_name().' Management":"'.$pandora_management.'"}';
|
||||||
|
|
||||||
db_pandora_audit("User management",
|
db_pandora_audit("User management",
|
||||||
"Update profile ". $name, false, false, $info);
|
"Update profile ".io_safe_output($name), false, false, $info);
|
||||||
|
|
||||||
ui_print_success_message(__('Successfully updated'));
|
ui_print_success_message(__('Successfully updated'));
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@ if ($create_profile) {
|
||||||
"'.get_product_name().' Management":"'.$pandora_management.'"}';
|
"'.get_product_name().' Management":"'.$pandora_management.'"}';
|
||||||
|
|
||||||
db_pandora_audit("User management",
|
db_pandora_audit("User management",
|
||||||
"Created profile ". $name, false, false, $info);
|
"Created profile ". io_safe_output($name), false, false, $info);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui_print_error_message(__('There was a problem creating this profile'));
|
ui_print_error_message(__('There was a problem creating this profile'));
|
||||||
|
|
Loading…
Reference in New Issue