Skip to content

Commit 23d09a2

Browse files
Preserve group name on input error
1 parent 79ed8ce commit 23d09a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/usr/local/www/system_groupmanager.php

+5
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
function cpusercmp($a, $b) {
8989
return strcasecmp($a['name'], $b['name']);
9090
}
91+
9192
function admin_groups_sort() {
9293
global $a_group;
9394

@@ -246,6 +247,8 @@ function admin_groups_sort() {
246247
header("Location: system_groupmanager.php");
247248
exit;
248249
}
250+
251+
$pconfig['name'] = $_POST['groupname'];
249252
}
250253

251254
function build_priv_table() {
@@ -287,11 +290,13 @@ function build_priv_table() {
287290
if ($act == "new" || $act == "edit") {
288291
$pgtitle[] = gettext('Edit');
289292
}
293+
290294
include("head.inc");
291295

292296
if ($input_errors) {
293297
print_input_errors($input_errors);
294298
}
299+
295300
if ($savemsg) {
296301
print_info_box($savemsg, 'success');
297302
}

0 commit comments

Comments
 (0)