Subject: | TextArea fields containing 0 (zero) lose their contents |
Noticed this in HFH 0.35002..
The TextArea widget contains this code:
my $fif = $self->html_filter($result->fif) || '';
which is then used to populate the textarea box.
Unfortunately, if the TextArea contains simply the numeral zero (ie. 0)
then the above || will fall over to the empty string.
The correct way to do this would be to use a defined-or operator, like
so, I think..
use 5.10.1;
my $fif = $self->html_filter($result->fif) // '';