瀏覽代碼

Fixed bug in MViews creating utility

spficklin 12 年之前
父節點
當前提交
37fe3cb4b7
共有 1 個文件被更改,包括 3 次插入0 次删除
  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,