Explorar el Código

Fixed bug in MViews creating utility

spficklin hace 12 años
padre
commit
37fe3cb4b7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      tripal_core/includes/mviews.php

+ 3 - 0
tripal_core/includes/mviews.php

@@ -410,6 +410,9 @@ function tripal_mviews_form_submit($form, &$form_state) {
   $comment = $form_state['values']['comment'];
   $schema = $form_state['values']['schema'];
   $modulename = $form_state['values']['modulename'];
+  if (!$modulename) {
+    $modulename = 'tripal_core';
+  }
 
   if (strcmp($action, 'Edit') == 0) {
     tripal_edit_mview($mview_id, $name, $modulename, $mv_table, $mv_specs,