Skip to content

Commit

Permalink
Merge pull request #1 from RiKap/patch-1
Browse files Browse the repository at this point in the history
ErrorGrid: Fix empty link when message is missing
  • Loading branch information
1josefnevoral committed Jan 12, 2016
2 parents 7d4853d + e75e67b commit 15eee63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/FrontendModule/Components/Grids/ErrorGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected function configure($presenter) {
->setTextFilter()
->setRenderer(function($row) use ($presenter) {
return \Nette\Utils\Html::el("a")
->setText(Strings::truncate($row["message"], 60))
->setText(trim($row["message"]) ? Strings::truncate($row["message"], 60) : $row["id"])
->addAttributes(array("target" => "_blank"))
->href($presenter->link("ErrorList:display", $row["id"]));
});
Expand Down

0 comments on commit 15eee63

Please sign in to comment.