X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/c2e4989097c6a6817e6c4d7bbabf70e43f14253d..761f4a3f4efbe238058efe99939698c0624d3181:/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;