X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=SL%2FDB%2FContactTitle.pm;fp=SL%2FDB%2FContactTitle.pm;h=95737d9c97cf8a8398188b78d539159987b91f51;hp=0000000000000000000000000000000000000000;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/SL/DB/ContactTitle.pm b/SL/DB/ContactTitle.pm new file mode 100644 index 000000000..95737d9c9 --- /dev/null +++ b/SL/DB/ContactTitle.pm @@ -0,0 +1,22 @@ +# This file has been auto-generated only because it didn't exist. +# Feel free to modify it at will; it will not be overwritten automatically. + +package SL::DB::ContactTitle; + +use strict; + +use SL::Util qw(trim); + +use SL::DB::MetaSetup::ContactTitle; +use SL::DB::Manager::ContactTitle; + +__PACKAGE__->meta->initialize; + +__PACKAGE__->before_save('_before_save_trim_content'); + +sub _before_save_trim_content { + $_[0]->description(trim($_[0]->description)); + return 1; +} + +1;