Selaa lähdekoodia

Fix issue 618

Abdullah Almsaeed 6 vuotta sitten
vanhempi
commit
536e84e889
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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.