X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FPart.pm;h=eff03697610b2d6a41fd8352cf303bdf96d51289;hb=7ed4b336b89b861479a1fc2670b9456334b0d1be;hp=e64a774a76f0fb9c56a69f903e0fef13223a7e64;hpb=57faab8f922edc190b6909b7626a445423de6676;p=kivitendo-erp.git diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index e64a774a7..eff036976 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -52,6 +52,7 @@ sub action_ajax_autocomplete { description => $_->description, type => $_->type, unit => $_->unit, + cvars => { map { ($_->config->name => { value => $_->value_as_text, is_valid => $_->is_valid }) } @{ $_->cvars_by_config } }, } } @{ $self->parts }; # neato: if exact match triggers we don't even need the init_parts @@ -59,8 +60,6 @@ sub action_ajax_autocomplete { } sub action_test_page { - $::request->{layout}->add_javascripts('autocomplete_part.js'); - $_[0]->render('part/test_page'); }