X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/2d7e4203055156dccb2ca3fba82bbb32873ecd2e..3f21f766920411eeb17e21887943e6fb6ff43b5c:/SL/DB/Department.pm diff --git a/SL/DB/Department.pm b/SL/DB/Department.pm index afca1900f..b00468c16 100644 --- a/SL/DB/Department.pm +++ b/SL/DB/Department.pm @@ -5,8 +5,6 @@ use strict; use SL::DB::MetaSetup::Department; use SL::DB::Manager::Department; -use SL::DB::DptTrans; - __PACKAGE__->meta->initialize; sub validate { @@ -21,9 +19,9 @@ sub validate { sub is_used { my ($self) = @_; + # Since the removal of table dpt_trans no check is required here anymore. return undef if !$self->id; - my $is_used = SL::DB::Manager::DptTrans->find_by(department_id => $self->id); - return !!$is_used; + return 0; } 1;