From: Moritz Bunkus Date: Tue, 17 Jan 2017 10:15:19 +0000 (+0100) Subject: ActionBar: Warnungen wegen Funktionsüberschreibung vermeiden X-Git-Tag: release-3.5.4~1302 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f9c6711c22848fbc30edac1944e46bb21aba8c05;p=kivitendo-erp.git ActionBar: Warnungen wegen Funktionsüberschreibung vermeiden --- diff --git a/SL/Layout/ActionBar/Action.pm b/SL/Layout/ActionBar/Action.pm index 3707dcf8b..4243b652b 100644 --- a/SL/Layout/ActionBar/Action.pm +++ b/SL/Layout/ActionBar/Action.pm @@ -4,7 +4,6 @@ use strict; use parent qw(Rose::Object); use SL::Presenter; -require SL::Layout::ActionBar::Submit; use Rose::Object::MakeMethods::Generic ( 'scalar --get_set_init' => [ qw(id params text) ], @@ -24,6 +23,8 @@ sub script { sub from_params { my ($class, $data) = @_; + require SL::Layout::ActionBar::Submit; + my ($text, %params) = @$data; return if exists($params{only_if}) && !$params{only_if}; return if exists($params{not_if}) && $params{not_if};