From 23d09a2e88e77d83c483969837051791e30c1d55 Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Tue, 29 Mar 2016 15:17:04 -0400 Subject: Preserve group name on input error --- src/usr/local/www/system_groupmanager.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/usr/local/www/system_groupmanager.php') diff --git a/src/usr/local/www/system_groupmanager.php b/src/usr/local/www/system_groupmanager.php index d94d6e0..639822c 100644 --- a/src/usr/local/www/system_groupmanager.php +++ b/src/usr/local/www/system_groupmanager.php @@ -88,6 +88,7 @@ $act = (isset($_GET['act']) ? $_GET['act'] : ''); function cpusercmp($a, $b) { return strcasecmp($a['name'], $b['name']); } + function admin_groups_sort() { global $a_group; @@ -246,6 +247,8 @@ if (isset($_POST['save'])) { header("Location: system_groupmanager.php"); exit; } + + $pconfig['name'] = $_POST['groupname']; } function build_priv_table() { @@ -287,11 +290,13 @@ $pgtitle = array(gettext("System"), gettext("User Manager"), gettext("Groups")); if ($act == "new" || $act == "edit") { $pgtitle[] = gettext('Edit'); } + include("head.inc"); if ($input_errors) { print_input_errors($input_errors); } + if ($savemsg) { print_info_box($savemsg, 'success'); } -- cgit v1.1