We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4a92e commit 36ff37dCopy full SHA for 36ff37d
Grido/Components/Operation.php
@@ -137,7 +137,10 @@ public function addCheckers(\Nette\Forms\Container $container)
137
$propertyAccessor = $this->grid->getPropertyAccessor();
138
139
foreach ($items as $item) {
140
- $container->addCheckbox($propertyAccessor->getProperty($item, $primaryKey));
+ $primaryValue = $propertyAccessor->getProperty($item, $primaryKey);
141
+ if (!isset($container[$primaryValue])) {
142
+ $container->addCheckbox($primaryValue);
143
+ }
144
}
145
146
0 commit comments