Skip to content

Commit 4e6d814

Browse files
Fix: If the checkbox rule is disabled/hidden, the value should not be selected while clicking on select all. (#1883)
1 parent 67044f8 commit 4e6d814

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Concerns/Checkbox.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ public function selectCheckboxAll(): void
4545
$hide = (bool) data_get(
4646
collect((array) $model->__powergrid_rules) //@phpstan-ignore-line
4747
->where('apply', true)
48+
->where('forAction', 'pg:checkbox')
4849
->last(),
49-
'disable',
50+
'hide',
5051
);
5152

5253
$disable = (bool) data_get(
5354
collect((array) $model->__powergrid_rules) //@phpstan-ignore-line
5455
->where('apply', true)
56+
->where('forAction', 'pg:checkbox')
5557
->last(),
5658
'disable',
5759
);

0 commit comments

Comments
 (0)