Skip to content

Commit

Permalink
Merge pull request #1201 from btski/patch-1
Browse files Browse the repository at this point in the history
Fix for issue #1165: null value error
  • Loading branch information
spficklin committed Jun 14, 2021
2 parents 9d89d58 + 59dc93e commit f83cbf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tripal_bulk_loader/includes/tripal_bulk_loader.loader.inc
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,10 @@ function process_data_array_for_line($priority, &$data, &$default_data, $addt) {
if ($table_data['optional'] or preg_match('/optional/', $table_data['mode']) or
$table_data['select_optional']) {
$skip_optional = 1;
// set the values array to be empty since we all required fields are
// set the values array to be NULL since we all required fields are
// optional and we can't do a select/insert so we don't want to keep
// the values if this record is used in a later FK relationship.
$values = [];
$values = NULL;
}
else {
$msg = "Line " . $addt->line_num . ' "' . $table_data['record_id'] .
Expand Down

0 comments on commit f83cbf0

Please sign in to comment.