Browse Source

Made sure default panel existed before rendering the entity

Chun-Huai Cheng 9 years ago
parent
commit
fea71427d2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tripal_fields_layout/tripal_fields_layout.module

+ 2 - 0
tripal_fields_layout/tripal_fields_layout.module

@@ -522,6 +522,8 @@ function tripal_fields_layout_entity_view($entity, $type, $view_mode, $langcode)
           ->execute()
           ->fetchObject();
         
+        _tripal_fields_layout_check_default_field_panels ($bundle);
+        
         $results = db_select ('tripal_panels', 'tp')
           ->fields('tp', array('panel_id','name', 'label'))
           ->condition('bundle_id', $bundle->id)