Skip to content

Commit

Permalink
Don't linkify without a case id
Browse files Browse the repository at this point in the history
  • Loading branch information
rbpotter committed May 17, 2016
1 parent bae25e5 commit 0d5ec47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ui/Component/Listing/Columns/CaseLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function prepareDataSource(array $dataSource)
if (isset($dataSource['data']['items'])) {
$name = $this->getData('name');
foreach ($dataSource['data']['items'] as &$item) {
if(isset($item['signifyd_code'])) {
if(isset($item['signifyd_code']) && $item['signifyd_code'] != '') {
$url = "https://www.signifyd.com/cases/" . $item['signifyd_code'];
$item[$name] = "<a href=\"$url\" target=\"_blank\">$item[$name]</a>";
}
Expand Down

0 comments on commit 0d5ec47

Please sign in to comment.