X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FProject.pm;h=94862e11b98f16a0a234feadadd155536f181378;hb=d4925a8b60f04674885e30d9316dc0263f8b9a84;hp=72f9bd4b2e15ed893a0b353f1f452e7af389de2c;hpb=954eb9c0ecad0e5acf697e39ea0ad1418bd7cca9;p=kivitendo-erp.git diff --git a/SL/Controller/Project.pm b/SL/Controller/Project.pm index 72f9bd4b2..94862e11b 100644 --- a/SL/Controller/Project.pm +++ b/SL/Controller/Project.pm @@ -120,10 +120,14 @@ sub action_ajax_autocomplete { $::form->{sort_by} = 'customer_and_description'; + my $description_style = ($::form->{description_style} =~ m{both|number|description|full}) + ? $::form->{description_style} + : 'full'; + my @hashes = map { +{ - value => $_->full_description(style => 'full'), - label => $_->full_description(style => 'full'), + value => $_->full_description(style => $description_style), + label => $_->full_description(style => $description_style), id => $_->id, projectnumber => $_->projectnumber, description => $_->description, @@ -244,6 +248,7 @@ sub display_form { CVar->render_inputs(variables => $params{CUSTOM_VARIABLES}) if @{ $params{CUSTOM_VARIABLES} }; + $::request->layout->use_javascript('kivi.File.js'); $self->setup_edit_action_bar(callback => $params{callback}); $self->render('project/form', %params);