Skip to content

Commit

Permalink
Operation: Fixed [Closed #76]
Browse files Browse the repository at this point in the history
  • Loading branch information
o5 committed Sep 30, 2013
1 parent 5c4a92e commit 36ff37d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Grido/Components/Operation.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ public function addCheckers(\Nette\Forms\Container $container)
$propertyAccessor = $this->grid->getPropertyAccessor();

foreach ($items as $item) {
$container->addCheckbox($propertyAccessor->getProperty($item, $primaryKey));
$primaryValue = $propertyAccessor->getProperty($item, $primaryKey);
if (!isset($container[$primaryValue])) {
$container->addCheckbox($primaryValue);
}
}
}
}

0 comments on commit 36ff37d

Please sign in to comment.