Parcourir la source

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

Lacey Sanderson il y a 6 ans
Parent
commit
8e3c2e9d43
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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.