Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d729e328

Von Sven Schöling vor fast 13 Jahren hinzugefügt

  • ID d729e3287170e929ff0306855d33b823a692f62d
  • Vorgänger 85629633
  • Nachfolger 1a106c11

typ customer korrekt ans template system übergeben

Unterschiede anzeigen:

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