Skip to content

Commit

Permalink
Fix render of values in curval
Browse files Browse the repository at this point in the history
  • Loading branch information
abeverley committed Sep 18, 2024
1 parent 2226964 commit a1db8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/GADS/Datum/Curcommon.pm
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ sub _build_values_as_query_records
# encodes in utf-8. Therefore decode before passing into datums.
my @newv = ref $newv eq 'ARRAY' ? @$newv : ($newv);
$_ && utf8::decode($_) foreach @newv;
$record->fields->{$col->id}->set_value(\@newv)
$record->get_field_value($col)->set_value(\@newv)
if defined $params->{$col->field} && $col->userinput && defined $newv;
}
push @records, $record;
Expand Down Expand Up @@ -474,7 +474,7 @@ sub for_table
version_id => $val->{version_id},
fields => [],
};
push @{$ret->{fields}}, $val->{record}->fields->{$_->id}->for_table
push @{$ret->{fields}}, $val->{record}->get_field_value($_)->for_table
foreach @{$self->column->curval_fields};
push @{$return->{values}}, $ret;
}
Expand Down

0 comments on commit a1db8c7

Please sign in to comment.