]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/Department.pm
Dialogbuchungsvorlagen um 'Details anzeigen' erweitert
[kivitendo-erp.git] / SL / DB / Department.pm
index afca1900fb461acf08055d7d52cc7d971d10d5b2..b00468c16aa70fda99b2d974a48c5211e10c1141 100644 (file)
@@ -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;