Skip to content

Commit

Permalink
Merge pull request #1429 from tripal/tv3g9-issue1428-tripal_chado_fie…
Browse files Browse the repository at this point in the history
…ld_storage_load

tv3g9 issue1428 Check for null in tripal_chado_field_storage_load()
  • Loading branch information
laceysanderson committed Mar 6, 2023
2 parents 7e728e9 + 093bc2f commit 98d21db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tripal_chado/includes/tripal_chado.field_storage.inc
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ function tripal_chado_field_storage_load($entity_type, $entities, $age,
// For text fields that were not handled by a TripalField class we
// want to automatically expand those fields.
else {
if ($schema['fields'][$field_column]['type'] == 'text') {
if ($record and $schema['fields'][$field_column]['type'] == 'text') {
$record = chado_expand_var($record, 'field', "$field_table.$field_column");
$entity->{$field_name}['und'][0]['value'] = $record->$field_column;
// Text fields that have a text_processing == 1 setting need a
Expand Down

0 comments on commit 98d21db

Please sign in to comment.