Explorar o código

Bug Fix: Bundle category not set due to differences in variable name.

Lacey Sanderson %!s(int64=6) %!d(string=hai) anos
pai
achega
8e3c2e9d43
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tripal/api/tripal.entities.api.inc

+ 1 - 1
tripal/api/tripal.entities.api.inc

@@ -542,7 +542,7 @@ function tripal_create_bundle($args, $job = NULL) {
     }
 
     // Set the bundle category
-    $category = array_key_exists('bundle_category', $args) ? $args['bundle_category'] : 'Other';
+    $category = array_key_exists('category', $args) ? $args['category'] : 'Other';
     tripal_set_bundle_variable('bundle_category', $bundle->id, $category);
 
     // Attache the bundle fields.