projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'nummernkreise-leer-2432'
[kivitendo-erp.git]
/
SL
/
DB
/
Department.pm
diff --git
a/SL/DB/Department.pm
b/SL/DB/Department.pm
index
afca190
..
b00468c
100644
(file)
--- 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::MetaSetup::Department;
use SL::DB::Manager::Department;
-use SL::DB::DptTrans;
-
__PACKAGE__->meta->initialize;
sub validate {
__PACKAGE__->meta->initialize;
sub validate {
@@
-21,9
+19,9
@@
sub validate {
sub is_used {
my ($self) = @_;
sub is_used {
my ($self) = @_;
+ # Since the removal of table dpt_trans no check is required here anymore.
return undef if !$self->id;
return undef if !$self->id;
- my $is_used = SL::DB::Manager::DptTrans->find_by(department_id => $self->id);
- return !!$is_used;
+ return 0;
}
1;
}
1;