Browse Source

Creates cvitjs_enabled field in if it doesn't exist

E.Cannon 7 years ago
parent
commit
7cf227f698
1 changed files with 5 additions and 1 deletions
  1. 5 1
      includes/blast_ui.node.inc

+ 5 - 1
includes/blast_ui.node.inc

@@ -325,7 +325,11 @@ function blastdb_insert($node) {
   if (!$node->dbxref_linkout_type) {
     $node->dbxref_linkout_type = 'none';
   }
-  
+
+  if (!$node->cvitjs_enabled) {
+    $node->cvitjs_enabled = 0;
+  }
+    
   // Actually insert the record.
   db_insert('blastdb')->fields(array(
     'nid'                 => $node->nid,