From f9c6711c22848fbc30edac1944e46bb21aba8c05 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 17 Jan 2017 11:15:19 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Warnungen=20wegen=20Funktions=C3=BC?= =?utf8?q?berschreibung=20vermeiden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Layout/ActionBar/Action.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}; -- 2.20.1