|
@@ -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
|