瀏覽代碼

Applied fix made by Lacey to v2.x branch

Stephen Ficklin 9 年之前
父節點
當前提交
64fd3db95b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      legacy/tripal_core/tripal_core.module

+ 1 - 1
legacy/tripal_core/tripal_core.module

@@ -237,7 +237,7 @@ function tripal_core_field_widget_form_alter(&$element, &$form_state, $context)
 
   // If the name of the field is 'field_resource_links' then we want to
   // add a fieldset of tokens.
-  if ($element['#field_name'] == 'field_resource_links') {
+  if (isset($element['#field_name']) AND $element['#field_name'] == 'field_resource_links') {
 
     // Add the tokens fieldset to the last element.
     $num_elements = count($context['items']);