Browse Source

Fixed bug in mviews

spficklin 12 years ago
parent
commit
78b078bbfc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tripal_core/includes/mviews.php

+ 2 - 2
tripal_core/includes/mviews.php

@@ -207,8 +207,8 @@ function tripal_edit_mview($mview_id, $name, $modulename, $mv_table, $mv_specs,
 
     // re-create the table differently depending on if it the traditional method
     // or the Drupal Schema API method
-    if ($mv_schema) {
-      if (!tripal_create_chado_table ($ret, $mv_table, $schema_arr)) {
+    if ($mv_schema) {    	
+      if (!tripal_core_create_custom_table($ret, $mv_table, $schema_arr)) {
         drupal_set_message(t("Could not create the materialized view. Check Drupal error report logs."));
       }
       else {