Skip to content
Permalink
Browse files

fixes #887, $selection is never set on PHP side, no need to use it in…

… template

... and it makes the template compatible with PHP 7.2
  • Loading branch information...
plegall committed Jul 4, 2018
1 parent 3166435 commit 75118816b511b270f295484ddc0e27227b7e734c
Showing with 3 additions and 3 deletions.
  1. +3 −3 admin/themes/default/template/user_list.tpl
@@ -24,7 +24,7 @@ var missingConfirm = "{'You need to confirm deletion'|translate|escape:javascrip
var missingUsername = "{'Please, enter a login'|translate|escape:javascript}";

var allUsers = [{$all_users}];
var selection = [{$selection}];
var selection = [];
var pwg_token = "{$PWG_TOKEN}";

var protectedUsers = [{$protected_users}];
@@ -965,8 +965,8 @@ span.infos, span.errors {background-image:none; padding:2px 5px; margin:0;border
<fieldset id="action">
<legend>{'Action'|@translate}</legend>

<div id="forbidAction"{if count($selection) != 0} style="display:none"{/if}>{'No user selected, no action possible.'|@translate}</div>
<div id="permitAction"{if count($selection) == 0} style="display:none"{/if}>
<div id="forbidAction">{'No user selected, no action possible.'|@translate}</div>
<div id="permitAction" style="display:none">

<select name="selectAction">
<option value="-1">{'Choose an action'|@translate}</option>

0 comments on commit 7511881

Please sign in to comment.
You can’t perform that action at this time.