소스 검색

Fix issue 618

Abdullah Almsaeed 6 년 전
부모
커밋
536e84e889
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      tripal/includes/TripalEntityController.inc

+ 1 - 0
tripal/includes/TripalEntityController.inc

@@ -647,6 +647,7 @@ class TripalEntityController extends EntityAPIController {
           // Add this field to the entity with default value.
           if (!isset($queried_entities[$id]->{$field_name})) {
             $queried_entities[$id]->{$field_name} = array();
+            $entity->{$field_name} = array();
           }
 
           // Options used for the field_attach_load function.