Explorar o código

Several fixes to OBOImporter v.2

dsenalik %!s(int64=4) %!d(string=hai) anos
pai
achega
d5d420a9a6
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tripal_chado/includes/TripalImporter/OBOImporter.inc

+ 4 - 0
tripal_chado/includes/TripalImporter/OBOImporter.inc

@@ -894,6 +894,10 @@ class OBOImporter extends TripalImporter {
         and array_key_exists('obo_name', $this->arguments['run_args'])) {
       $namespace = $this->arguments['run_args']['obo_name'];
     }
+    if (!$namespace and array_key_exists('run_args', $this->arguments)
+        and array_key_exists('uobo_name', $this->arguments['run_args'])) {
+      $namespace = $this->arguments['run_args']['uobo_name'];
+    }
 
     // If we can't find the namespace or the short_name then bust.
     if (!$namespace and !$short_name) {