projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Form::read_logo gibt es in dieser Version nicht
[kivitendo-erp.git]
/
SL
/
Controller
/
TopQuickSearch
/
Article.pm
diff --git
a/SL/Controller/TopQuickSearch/Article.pm
b/SL/Controller/TopQuickSearch/Article.pm
index
e19e773
..
e689bbe
100644
(file)
--- a/
SL/Controller/TopQuickSearch/Article.pm
+++ b/
SL/Controller/TopQuickSearch/Article.pm
@@
-35,7
+35,8
@@
sub query_autocomplete {
}
sub select_autocomplete {
}
sub select_autocomplete {
- redirect_to_part($::form->{id});
+ my ($self) = @_;
+ $self->redirect_to_part($::form->{id});
}
sub do_search {
}
sub do_search {
@@
-55,7
+56,7
@@
sub redirect_to_search {
controller => 'ic.pl',
action => 'generate_report',
all => $term,
controller => 'ic.pl',
action => 'generate_report',
all => $term,
- (searchitems => $self->
type) x!!$self->
type,
+ (searchitems => $self->
part_type) x!!$self->part_
type,
);
}
);
}
@@
-63,13
+64,13
@@
sub redirect_to_part {
my ($self, $term) = @_;
SL::Controller::Base->new->url_for(
my ($self, $term) = @_;
SL::Controller::Base->new->url_for(
- controller => '
ic
.pl',
- action => 'edit',
-
id
=> $term,
+ controller => '
controller
.pl',
+ action => '
Part/
edit',
+
'part.id'
=> $term,
);
}
);
}
-sub type {
+sub
part_
type {
()
}
()
}
@@
-81,7
+82,8
@@
sub init_models {
model => 'Part',
source => {
filter => {
model => 'Part',
source => {
filter => {
- (type => $self->type) x!!$self->type,
+ (part_type => $self->part_type) x!!$self->part_type,
+ or => [ obsolete => undef, obsolete => 0 ],
'all:substr:multi::ilike' => $::form->{term},
},
},
'all:substr:multi::ilike' => $::form->{term},
},
},