Skip to content

Commit 36ff37d

Browse files
committed
Operation: Fixed [Closed #76]
1 parent 5c4a92e commit 36ff37d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Grido/Components/Operation.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ public function addCheckers(\Nette\Forms\Container $container)
137137
$propertyAccessor = $this->grid->getPropertyAccessor();
138138

139139
foreach ($items as $item) {
140-
$container->addCheckbox($propertyAccessor->getProperty($item, $primaryKey));
140+
$primaryValue = $propertyAccessor->getProperty($item, $primaryKey);
141+
if (!isset($container[$primaryValue])) {
142+
$container->addCheckbox($primaryValue);
143+
}
141144
}
142145
}
143146
}

0 commit comments

Comments
 (0)