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
This commit is contained in:
plegall
2018-07-04 17:10:00 +02:00
parent 31664352f5
commit 75118816b5

View File

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