Show the old group name in the error message when we fail to modify a group. Fixes ticket #1233.

This commit is contained in:
Bharat Mediratta
2010-07-20 15:33:48 -07:00
parent e5b1a4fc23
commit af8bb05d5d

View File

@@ -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));