euromark 11 年 前
コミット
f2260a8e5e
1 ファイル変更1 行追加9 行削除
  1. 1 9
      View/Helper/FormExtHelper.php

+ 1 - 9
View/Helper/FormExtHelper.php

@@ -591,8 +591,7 @@ class FormExtHelper extends FormHelper {
 			'empty' => false,
 			'empty' => false,
 			'return' => true,
 			'return' => true,
 		);
 		);
-
-		$customOptions = array_merge($defaultOptions, $options);
+		$customOptions = $options + $defaultOptions;
 
 
 		$res[] = $this->date($field, $customOptions);
 		$res[] = $this->date($field, $customOptions);
 		$res[] = $this->time($field, $customOptions);
 		$res[] = $this->time($field, $customOptions);
@@ -865,13 +864,6 @@ class FormExtHelper extends FormHelper {
 		$customOptions = array_merge($defaultOptions, $options);
 		$customOptions = array_merge($defaultOptions, $options);
 		$format24Hours = (int)$customOptions['timeFormat'] !== 24 ? false : true;
 		$format24Hours = (int)$customOptions['timeFormat'] !== 24 ? false : true;
 
 
-		if (strpos($field, '.') !== false) {
-			list($model, $field) = explode('.', $field, 2);
-		} else {
-			$entity = $this->entity();
-			$model = $this->model();
-		}
-
 		$blacklist = array('timeFormat' => null, 'dateFormat' => null, 'separator' => null);
 		$blacklist = array('timeFormat' => null, 'dateFormat' => null, 'separator' => null);
 
 
 		$hourOptions = array_merge($customOptions, array('class' => 'form-control hour'));
 		$hourOptions = array_merge($customOptions, array('class' => 'form-control hour'));