Revision d729e328
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
SL/CVar.pm | ||
---|---|---|
716 | 716 |
return $value; |
717 | 717 |
} |
718 | 718 |
|
719 |
sub format_to_template { |
|
720 |
my ($self, $value, $config) = @_; |
|
721 |
# stupid template expects everything formated. except objects |
|
722 |
# do not use outside of print routines for legacy templates |
|
723 |
|
|
724 |
return $::form->parse_amount(\%::myconfig, $value) if $config->{type} eq 'number'; |
|
725 |
return $value->to_lxoffice if $config->{type} eq 'date' && blessed $value && $value->can('to_lxoffice'); |
|
726 |
return $value; |
|
727 |
} |
|
728 |
|
|
719 | 729 |
1; |
720 | 730 |
|
721 | 731 |
__END__ |
Auch abrufbar als: Unified diff
typ customer korrekt ans template system übergeben