BankAccount.pm - require für Chart Abfrage
authorG. Richardson <information@kivitendo-premium.de>
Fri, 31 Jul 2015 08:54:47 +0000 (10:54 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Fri, 31 Jul 2015 08:54:47 +0000 (10:54 +0200)
SL/DB/BankAccount.pm

index 7bbd897..5f4a3e4 100644 (file)
@@ -24,6 +24,7 @@ sub validate {
     # chart_id)
 
     my $chart_id = $self->chart_id;
+    require SL::DB::Chart;
     my $chart = SL::DB::Manager::Chart->find_by( id => $chart_id );
     if ( $chart ) {
       my $linked_bank = SL::DB::Manager::BankAccount->find_by( chart_id => $chart_id );