Browse Source

needed to change the reference from the hidden field to the ajax field

Shawna Spoor 6 years ago
parent
commit
7b30b73224
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal/includes/TripalEntityController.inc

+ 2 - 2
tripal/includes/TripalEntityController.inc

@@ -689,11 +689,11 @@ class TripalEntityController extends EntityAPIController {
           else {
             // We only load via AJAX if empty fields are not hidden.
             $bundle = tripal_load_bundle_entity(array('name' => $bundle_name));
-            $hide_variable = tripal_get_bundle_variable('hide_empty_field', $bundle->id);
+            $ajax_field = tripal_get_bundle_variable('ajax_field', $bundle->id);
             if (array_key_exists('settings', $instance) and
                 array_key_exists('auto_attach', $instance['settings']) and
                 $instance['settings']['auto_attach'] == FALSE and
-                $hide_variable == FALSE) {
+                $ajax_field == TRUE) {
 
                // Add an empty value. This will allow the tripal_entity_view()
                // hook to add the necessary prefixes to the field for ajax