aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-05-30 11:20:04 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-05-30 11:24:00 +0200
commit44b8dafb233cb07403a303b9c3a5eb72539365d2 (patch)
tree07f99644b98eec07d6a5d4148fc7874648d2c76e /phpBB/includes/acp
parent2e46bef2ecc42a225e53d27c9b7614107b878186 (diff)
downloadforums-44b8dafb233cb07403a303b9c3a5eb72539365d2.tar
forums-44b8dafb233cb07403a303b9c3a5eb72539365d2.tar.gz
forums-44b8dafb233cb07403a303b9c3a5eb72539365d2.tar.bz2
forums-44b8dafb233cb07403a303b9c3a5eb72539365d2.tar.xz
forums-44b8dafb233cb07403a303b9c3a5eb72539365d2.zip
[ticket/6466] Support form reset and do not loose role upon resubmit
PHPBB3-6466
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/auth.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php
index efb92685f6..b13b1ee040 100644
--- a/phpBB/includes/acp/auth.php
+++ b/phpBB/includes/acp/auth.php
@@ -470,6 +470,9 @@ class auth_admin extends \phpbb\auth\auth
// Build role dropdown options
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;
+ // Output current role id to template
+ $template->assign_var('S_ROLE_ID', $current_role_id);
+
@reset($roles);
while (list($role_id, $role_row) = each($roles))
{
@@ -552,6 +555,9 @@ class auth_admin extends \phpbb\auth\auth
// Build role dropdown options
$current_role_id = (isset($cur_roles[$ug_id][$forum_id])) ? $cur_roles[$ug_id][$forum_id] : 0;
+ // Output current role id to template
+ $template->assign_var('S_ROLE_ID', $current_role_id);
+
@reset($roles);
while (list($role_id, $role_row) = each($roles))
{