From 15810437146d6ff68b664e25b1ec4e1bc003d073 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 18 Dec 2020 10:16:34 +0100 Subject: [PATCH] propperly set date format for date chooser used by attributes --- views/bootstrap/class.Bootstrap.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index a10517a88..503d9e1bc 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -1567,8 +1567,7 @@ $(document).ready(function() { break; case SeedDMS_Core_AttributeDefinition::type_date: $objvalue = $attribute ? (is_object($attribute) ? $attribute->getValue() : $attribute) : ''; - if(!$dateformat) - $dateformat = getConvertDateFormat(); + $dateformat = getConvertDateFormat($this->params['settings']->_dateformat); $content .= '