From: Moritz Bunkus Date: Fri, 27 Feb 2015 08:23:35 +0000 (+0100) Subject: SL::DB::RequirementSpec: time_estimation auch als _as_man_days, _as_man_days_unit X-Git-Tag: release-3.2.0~9^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=075499b035a29c2144f8fa066d65575b4bde755c;p=kivitendo-erp.git SL::DB::RequirementSpec: time_estimation auch als _as_man_days, _as_man_days_unit Analog zum RequirementSpecItem --- diff --git a/SL/DB/RequirementSpec.pm b/SL/DB/RequirementSpec.pm index cd603aa6f..bc68c17c4 100644 --- a/SL/DB/RequirementSpec.pm +++ b/SL/DB/RequirementSpec.pm @@ -8,6 +8,7 @@ use Rose::DB::Object::Helpers; use SL::DB::MetaSetup::RequirementSpec; use SL::DB::Manager::RequirementSpec; +use SL::DB::Helper::AttrDuration; use SL::DB::Helper::LinkedRecords; use SL::Locale::String; use SL::Util qw(_hashify); @@ -52,6 +53,8 @@ __PACKAGE__->meta->add_relationship( __PACKAGE__->meta->initialize; +__PACKAGE__->attr_duration(qw(time_estimation)); + __PACKAGE__->before_save('_before_save_initialize_not_null_columns'); sub validate {