projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring
[kivitendo-erp.git]
/
SL
/
Controller
/
Part.pm
diff --git
a/SL/Controller/Part.pm
b/SL/Controller/Part.pm
index
60bebd4
..
4349b1f
100644
(file)
--- a/
SL/Controller/Part.pm
+++ b/
SL/Controller/Part.pm
@@
-14,7
+14,8
@@
use Rose::Object::MakeMethods::Generic (
);
# safety
);
# safety
-__PACKAGE__->run_before(sub { $::auth->assert('part_service_assembly_edit') });
+__PACKAGE__->run_before(sub { $::auth->assert('part_service_assembly_edit') },
+ except => [ qw(ajax_autocomplete part_picker_search part_picker_result) ]);
sub action_ajax_autocomplete {
my ($self, %params) = @_;
sub action_ajax_autocomplete {
my ($self, %params) = @_;
@@
-50,6
+51,7
@@
sub action_ajax_autocomplete {
partnumber => $_->partnumber,
description => $_->description,
type => $_->type,
partnumber => $_->partnumber,
description => $_->description,
type => $_->type,
+ unit => $_->unit,
}
} @{ $self->parts }; # neato: if exact match triggers we don't even need the init_parts
}
} @{ $self->parts }; # neato: if exact match triggers we don't even need the init_parts