r4132 - trunk/plugins/ullCorePlugin/lib/form/widget

2 views
Skip to first unread message

s...@ull.at

unread,
Aug 5, 2014, 3:40:20 AM8/5/14
to ullrigh...@googlegroups.com
Author: klemens
Date: 2014-08-05 09:40:19 +0200 (Tue, 05 Aug 2014)
New Revision: 4132

Modified:
trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetDateRead.class.php
Log:
ullWidgetDateRead didn't support array values

Modified: trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetDateRead.class.php
===================================================================
--- trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetDateRead.class.php 2014-07-09 09:13:31 UTC (rev 4131)
+++ trunk/plugins/ullCorePlugin/lib/form/widget/ullWidgetDateRead.class.php 2014-08-05 07:40:19 UTC (rev 4132)
@@ -24,6 +24,11 @@

public function render($name, $value = null, $attributes = array(), $errors = array())
{
+ if (is_array($value) && array_key_exists('value', $value))
+ {
+ $value = $value['value'];
+ }
+
if (!$value)
{
return '';

Reply all
Reply to author
Forward
0 new messages