Quellcode durchsuchen

Ticket #4658 - Persons: Birthday field with Date Select type doesn't show selected date.

AntonLV vor 2 Jahren
Ursprung
Commit
a097aa2fb2
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      template/scripts/BxBaseFormView.php

+ 3 - 0
template/scripts/BxBaseFormView.php

@@ -1348,6 +1348,9 @@ BLAH;
                 $this->addCssJsUi ();
                 break;
             case 'dateselect':
+                if(strpos($aInput['value'], ' ') !== false)
+                    list($aInput['value']) = explode(' ', $aInput['value']);
+
                 $this->_addJs(array(
                     'combodate/combodate.js',
                 ), "'undefined' === typeof($.combodate)");