Browse Source

keeping pub 1 and contact 1 from being published

Shawna Spoor 8 years ago
parent
commit
77c7f51200
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tripal_chado/api/tripal_chado.api.inc

+ 1 - 1
tripal_chado/api/tripal_chado.api.inc

@@ -179,7 +179,7 @@ function tripal_chado_publish_records($values, $job_id = NULL) {
   try {
     $i = 0;
     while($record = $records->fetchObject()) {
-      if($table == 'pub' && $record->record_id == 1){
+      if(($table == 'pub' && $record->record_id == 1) || ($table == 'contact' && $record->record_id == 1)){
         // Do not create the chado entity.
       }
       else {