From: Sven Schöling Date: Tue, 22 Sep 2015 12:19:41 +0000 (+0200) Subject: PriceRule: js accessor angepasst X-Git-Tag: release-3.4.1~721 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2d678531e9c4b3ac578d62e3c2e3f6589b2efc11;p=kivitendo-erp.git PriceRule: js accessor angepasst --- diff --git a/SL/Controller/PriceRule.pm b/SL/Controller/PriceRule.pm index 1d210d426..1a42a71a2 100644 --- a/SL/Controller/PriceRule.pm +++ b/SL/Controller/PriceRule.pm @@ -13,12 +13,11 @@ use SL::DB::Pricegroup; use SL::DB::PartsGroup; use SL::DB::Business; use SL::Helper::Flash; -use SL::ClientJS; use SL::Locale::String; use Rose::Object::MakeMethods::Generic ( - 'scalar --get_set_init' => [ qw(models price_rule vc js pricegroups partsgroups businesses) ], + 'scalar --get_set_init' => [ qw(models price_rule vc pricegroups partsgroups businesses) ], ); # __PACKAGE__->run_before('check_auth'); @@ -87,7 +86,7 @@ sub action_add_item_row { ->js ->before('#price_rule_new_items', $html) ->reinit_widgets - ->render($self); + ->render; } sub action_price_type_help { @@ -267,10 +266,6 @@ sub init_vc { $::form->{filter}{type}; } -sub init_js { - SL::ClientJS->new; -} - sub init_businesses { SL::DB::Manager::Business->get_all; }