X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FPart.pm;h=f7d0011e686a51397c4f55cb0541dc2711fdd8dc;hb=ed9b1bfb7;hp=7b4a2bc818b7ea28f930d99c6bf50353cc504e48;hpb=62f2141002f5b8c11fa9d881473fd3bc469b4eef;p=kivitendo-erp.git diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 7b4a2bc81..f7d0011e6 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 @@ -227,6 +228,7 @@ sub render_form { %assembly_vars = %{ $self->prepare_assembly_render_vars } if $self->part->is_assembly; $params{CUSTOM_VARIABLES} = CVar->get_custom_variables(module => 'IC', trans_id => $self->part->id); + $_->{valid} = 1 for @{ $params{CUSTOM_VARIABLES} }; CVar->render_inputs('variables' => $params{CUSTOM_VARIABLES}, show_disabled_message => 1, partsgroup_id => $self->part->partsgroup_id) if (scalar @{ $params{CUSTOM_VARIABLES} }); @@ -857,12 +859,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 { @@ -1270,7 +1273,6 @@ sub _setup_form_action_bar { t8('Save'), call => [ 'kivi.Part.save' ], disabled => !$may_edit ? t8('You do not have the permissions to access this function.') : undef, - accesskey => 'enter', ], action => [ t8('Use as new'),