}
sub select_autocomplete {
- redirect_to_part($::form->{id});
+ my ($self) = @_;
+ $self->redirect_to_part($::form->{id});
}
sub do_search {
controller => 'ic.pl',
action => 'generate_report',
all => $term,
- (searchitems => $self->type) x!!$self->type,
+ (searchitems => $self->part_type) x!!$self->part_type,
);
}
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 {
()
}
model => 'Part',
source => {
filter => {
- (type => $self->type) x!!$self->type,
+ (part_type => $self->part_type) x!!$self->part_type,
'all:substr:multi::ilike' => $::form->{term},
},
},