From e407f82d3abb25d02ef7ef0dcf3aaedcae4adf1e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 1 Dec 2020 22:04:19 +0100 Subject: [PATCH] add extra output of date attributes --- views/bootstrap/class.Bootstrap.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index f678f9022..449f1a7ff 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1536,6 +1536,14 @@ $(document).ready(function() { } return implode('
', $tmp); break; + case SeedDMS_Core_AttributeDefinition::type_date: + $attrs = $attribute->getValueAsArray(); + $tmp = array(); + foreach($attrs as $attr) { + $tmp[] = getReadableDate($attr); + } + return implode(', ', $tmp); + break; default: return htmlspecialchars(implode(', ', $attribute->getValueAsArray())); }