Skip to content

Commit 3be5b74

Browse files
michieldsuelaP
authored andcommitted
always output the hidden field, to allow unselecting all
1 parent 455df90 commit 3be5b74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

public_html/lists/admin/connect.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,10 @@ function ListofLists($current, $fieldname, $subselect)
13321332

13331333
$categoryhtml['selected'] = '';
13341334

1335+
$categoryhtml['all'] = '<input type="hidden" name="' .$fieldname.'[unselect]" value="-1" />';
13351336
if ($fieldname == 'targetlist') {
1336-
$categoryhtml['all'] = '
1337-
<li><input type="hidden" name="' .$fieldname.'[unselect]" value="-1" /><input type="checkbox" name="'.$fieldname.'[all]"';
1337+
$categoryhtml['all'] .= '
1338+
<li><input type="checkbox" name="'.$fieldname.'[all]"';
13381339
if (!empty($current['all'])) {
13391340
$categoryhtml['all'] .= 'checked';
13401341
}

0 commit comments

Comments
 (0)