Skip to content

Commit

Permalink
Merge pull request #247 from skaut/omezeni-delky-zahlavi
Browse files Browse the repository at this point in the history
zkracování hlavičky a hodnoty vlastního pole v tabulce uživatelů
  • Loading branch information
Jan Staněk authored Mar 23, 2017
2 parents ec2d390 + d26286c commit 5a7bda3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/AdminModule/components/UsersGridControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ public function createComponentUsersGrid($name)
});

foreach ($this->customInputRepository->findAllOrderedByPosition() as $customInput) {
$grid->addColumnText('customInput' . $customInput->getId(), $this->truncate($customInput->getName(), 35))
$grid->addColumnText('customInput' . $customInput->getId(), $this->truncate($customInput->getName(), 20))
->setRenderer(function ($row) use ($customInput) {
$customInputValue = $row->getCustomInputValue($customInput);
if ($customInputValue) {
if ($customInputValue->getInput()->getType() == CustomInput::TEXT)
return $customInputValue->getValue();
return $this->truncate($customInputValue->getValue(), 20);
else {
return $customInputValue->getValue() ?
$this->translator->translate('admin.common.yes') :
Expand Down

0 comments on commit 5a7bda3

Please sign in to comment.