Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed4b292c

Von Bernd Blessmann vor fast 13 Jahren hinzugefügt

  • ID ed4b292c1489bbad1a6b3aa7d2f929fabff254bc
  • Vorgänger 3ace9841
  • Nachfolger 76a2823e

CVars-Type vendor und part auch richtig parsen

Unterschiede anzeigen:

SL/CVar.pm
return $::form->parse_amount(\%::myconfig, $value) if $config->{type} eq 'number';
return DateTime->from_lxoffice($value) if $config->{type} eq 'date';
return !ref $value ? SL::DB::Manager::Customer->find_by(id => $value * 1) : $value if $config->{type} eq 'customer';
return !ref $value ? SL::DB::Manager::Vendor->find_by(id => $value * 1) : $value if $config->{type} eq 'vendor';
return !ref $value ? SL::DB::Manager::Part->find_by(id => $value * 1) : $value if $config->{type} eq 'part';
return $value;
}

Auch abrufbar als: Unified diff