소스 검색

fix type order definition

Thomas 14 년 전
부모
커밋
b1ef03945d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Admin/FieldDescription.php

+ 2 - 2
Admin/FieldDescription.php

@@ -197,8 +197,8 @@ class FieldDescription
     {
         $this->fieldMapping = $fieldMapping;
 
-        $this->type      = $fieldMapping['type'];
-        $this->fieldName = $fieldMapping['fieldName'];
+        $this->type      = $this->type ?: $fieldMapping['type'];
+        $this->fieldName = $this->fieldName ?: $fieldMapping['fieldName'];
     }
 
     public function getFieldMapping()