From 075499b035a29c2144f8fa066d65575b4bde755c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 27 Feb 2015 09:23:35 +0100 Subject: [PATCH] SL::DB::RequirementSpec: time_estimation auch als _as_man_days, _as_man_days_unit Analog zum RequirementSpecItem --- SL/DB/RequirementSpec.pm | 3 +++ 1 file changed, 3 insertions(+) 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 { -- 2.20.1