X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/041274eeffcf6a17037cfb759d11aa4d33b2e567..008b51c43d064b8172168aee7fdff393c5d4b13a:/SL/DB/Greeting.pm diff --git a/SL/DB/Greeting.pm b/SL/DB/Greeting.pm index fa0fa82bf..c43edf92f 100644 --- a/SL/DB/Greeting.pm +++ b/SL/DB/Greeting.pm @@ -5,9 +5,18 @@ package SL::DB::Greeting; use strict; +use SL::Util qw(trim); + use SL::DB::MetaSetup::Greeting; use SL::DB::Manager::Greeting; __PACKAGE__->meta->initialize; +__PACKAGE__->before_save('_before_save_trim_content'); + +sub _before_save_trim_content { + $_[0]->description(trim($_[0]->description)); + return 1; +} + 1;