From b628840f2338a4642f3900a52c940d7a3313397a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 8 Jul 2025 15:23:37 +0200 Subject: [locations] Location::getLocations(): Add "checked" string for convenience --- modules-available/locations/inc/location.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules-available/locations/inc/location.inc.php') diff --git a/modules-available/locations/inc/location.inc.php b/modules-available/locations/inc/location.inc.php index d4978068..487bb5ff 100644 --- a/modules-available/locations/inc/location.inc.php +++ b/modules-available/locations/inc/location.inc.php @@ -224,6 +224,7 @@ class Location } if ((is_array($selected) && in_array($row['locationid'], $selected)) || $row['locationid'] == $selected) { $row['selected'] = true; + $row['checked'] = 'checked'; } $row['sortIndex'] = $index++; } @@ -232,6 +233,7 @@ class Location 'locationid' => 0, 'locationname' => '-----', 'selected' => $selected === 0, + 'checked' => $selected === 0 || (is_array($selected) && in_array(0, $selected)) ? 'checked' : '', 'locationpad' => '', ]; if ($keepArrayKeys) { -- cgit v1.2.3-55-g7522