Skip to content

Commit 455df90

Browse files
michieldsuelaP
authored andcommitted
do not show "all lists" and "all public lists" on the excludelist section
1 parent 2e77a14 commit 455df90

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

public_html/lists/admin/connect.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,18 +1331,21 @@ function ListofLists($current, $fieldname, $subselect)
13311331
// $categoryhtml['unselect'] = '<input type="hidden" name="'.$fieldname.'[unselect]" value="1" />';
13321332

13331333
$categoryhtml['selected'] = '';
1334-
$categoryhtml['all'] = '
1335-
<li><input type="hidden" name="' .$fieldname.'[unselect]" value="-1" /><input type="checkbox" name="'.$fieldname.'[all]"';
1336-
if (!empty($current['all'])) {
1337-
$categoryhtml['all'] .= 'checked';
1338-
}
1339-
$categoryhtml['all'] .= ' />'.s('All Lists').'</li>';
13401334

1341-
$categoryhtml['all'] .= '<li><input type="checkbox" name="'.$fieldname.'[allactive]"';
1342-
if (!empty($current['allactive'])) {
1343-
$categoryhtml['all'] .= 'checked="checked"';
1335+
if ($fieldname == 'targetlist') {
1336+
$categoryhtml['all'] = '
1337+
<li><input type="hidden" name="' .$fieldname.'[unselect]" value="-1" /><input type="checkbox" name="'.$fieldname.'[all]"';
1338+
if (!empty($current['all'])) {
1339+
$categoryhtml['all'] .= 'checked';
1340+
}
1341+
$categoryhtml['all'] .= ' />'.s('All Lists').'</li>';
1342+
1343+
$categoryhtml['all'] .= '<li><input type="checkbox" name="'.$fieldname.'[allactive]"';
1344+
if (!empty($current['allactive'])) {
1345+
$categoryhtml['all'] .= 'checked="checked"';
1346+
}
1347+
$categoryhtml['all'] .= ' />'.s('All Public Lists').'</li>';
13441348
}
1345-
$categoryhtml['all'] .= ' />'.s('All Public Lists').'</li>';
13461349

13471350
//# need a better way to suppress this
13481351
if ($_GET['page'] != 'send') {

0 commit comments

Comments
 (0)