Skip to content

Commit

Permalink
Disable date_display field [WEB-1822, WEB-1830]
Browse files Browse the repository at this point in the history
  • Loading branch information
IllyaMoskvin committed Sep 15, 2020
1 parent da60327 commit 8c007e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/Models/Exhibition.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,10 @@ protected function transformMappingInternal()
"name" => "date_display",
"doc" => "Formatted date with override",
"type" => "string",
"value" => function () {return trim(html_entity_decode(strip_tags($this->getApiModelFilledCached()->present()->formattedDate()->render())));},
"value" => function () {
// WEB-1822, WEB-1830: This causes errors when the API model isn't found, needs more work on several fronts
// return trim(html_entity_decode(strip_tags($this->getApiModelFilledCached()->present()->formattedDate()->render())));
},
],
[
"name" => 'related',
Expand Down

0 comments on commit 8c007e4

Please sign in to comment.