From d210aa27e9d5a711417b2bef939e15bd42957743 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Mon, 15 Jan 2018 11:23:17 +0100 Subject: [PATCH] fixt #337 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Vergessene Presenter-Umstellung für Controller/Part.pm --- SL/Controller/Part.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index a05252c36..9129f75c9 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -20,6 +20,7 @@ use SL::CVar; use SL::MoreCommon qw(save_form); use Carp; use SL::Presenter::EscapedText qw(escape is_escaped); +use SL::Presenter::Tag qw(select_tag); use Rose::Object::MakeMethods::Generic ( 'scalar --get_set_init' => [ qw(parts models part p warehouses multi_items_models @@ -857,12 +858,13 @@ sub parse_form_customerprices { } sub build_bin_select { - $_[0]->p->select_tag('part.bin_id', [ $_[0]->warehouse->bins ], + select_tag('part.bin_id', [ $_[0]->warehouse->bins ], title_key => 'description', default => $_[0]->bin->id, ); } + # get_set_inits for partpicker sub init_parts { -- 2.20.1