mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Show the old group name in the error message when we fail to modify a group. Fixes ticket #1233.
This commit is contained in:
@@ -260,6 +260,7 @@ class Admin_Users_Controller extends Admin_Controller {
|
||||
t("Changed group %group_name", array("group_name" => $group->name)));
|
||||
print json_encode(array("result" => "success"));
|
||||
} else {
|
||||
$group->reload();
|
||||
message::error(
|
||||
t("Failed to change group %group_name", array("group_name" => $group->name)));
|
||||
print json_encode(array("result" => "error", "form" => (string) $form));
|
||||
|
||||
Reference in New Issue
Block a user