]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Part.pm
URLs für Links im ReportGenerator richtig escapen.
[mfinanz.git] / SL / Controller / Part.pm
index c8b0c311b3cbd441d458f8a14837c44644555366..6b76252cc8017b97a13f83f1cd169f3980b8bd88 100644 (file)
@@ -50,6 +50,7 @@ sub action_ajax_autocomplete {
      partnumber  => $_->partnumber,
      description => $_->description,
      type        => $_->type,
+     unit        => $_->unit,
     }
   } @{ $self->parts }; # neato: if exact match triggers we don't even need the init_parts
 
@@ -79,7 +80,6 @@ sub init_models {
 
   SL::Controller::Helper::GetModels->new(
     controller => $self,
-    model  => 'Part',
     sorted => {
       _default  => {
         by => 'partnumber',