Skip to content

Commit

Permalink
Fix bug in LocationAwareWidget.php where getAll() method was called i…
Browse files Browse the repository at this point in the history
…nstead of getIdOrAll().

Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Jun 19, 2023
1 parent 21df1e4 commit 9167041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/traits/LocationAwareWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ protected function isLocationAware($config)
*/
protected function locationApplyScope($query)
{
if (is_null($ids = AdminLocation::getAll()))
if (is_null($ids = AdminLocation::getIdOrAll()))
return;

$model = $query->getModel();
Expand Down

0 comments on commit 9167041

Please sign in to comment.