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.