projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ungenutzte Funktion retrieve_assemblies in IC.pm entfernt
[kivitendo-erp.git]
/
SL
/
Controller
/
TopQuickSearch.pm
diff --git
a/SL/Controller/TopQuickSearch.pm
b/SL/Controller/TopQuickSearch.pm
index
b721749
..
c3ad7f3
100644
(file)
--- a/
SL/Controller/TopQuickSearch.pm
+++ b/
SL/Controller/TopQuickSearch.pm
@@
-16,8
+16,15
@@
my @available_modules = (
'SL::Controller::TopQuickSearch::Part',
'SL::Controller::TopQuickSearch::Service',
'SL::Controller::TopQuickSearch::Assembly',
'SL::Controller::TopQuickSearch::Part',
'SL::Controller::TopQuickSearch::Service',
'SL::Controller::TopQuickSearch::Assembly',
+ 'SL::Controller::TopQuickSearch::Assortment',
'SL::Controller::TopQuickSearch::Contact',
'SL::Controller::TopQuickSearch::Contact',
+ 'SL::Controller::TopQuickSearch::SalesQuotation',
+ 'SL::Controller::TopQuickSearch::SalesOrder',
+ 'SL::Controller::TopQuickSearch::RequestForQuotation',
+ 'SL::Controller::TopQuickSearch::PurchaseOrder',
'SL::Controller::TopQuickSearch::GLTransaction',
'SL::Controller::TopQuickSearch::GLTransaction',
+ 'SL::Controller::TopQuickSearch::Customer',
+ 'SL::Controller::TopQuickSearch::Vendor',
);
my %modules_by_name;
);
my %modules_by_name;
@@
-115,13
+122,14
@@
SL::Controller::TopQuickSearch - Framework for pluggable quicksearch fields in t
=head1 SYNOPSIS
=head1 SYNOPSIS
-use SL::Controller::TopQuickSearch;
-my $search = SL::Controller::TopQuickSearch->new;
+ use SL::Controller::TopQuickSearch;
+ my $search = SL::Controller::TopQuickSearch->new;
+ $::request->layout->add_javascripts('kivi.QuickSearch.js');
-# in layout
-
[%- FOREACH module = search.available
_modules %]
-<input type='text' id='top-search-[% module.name %]'>
-[%- END %]
+ # in template
+
[%- FOREACH module = search.enabled
_modules %]
+
<input type='text' id='top-search-[% module.name %]'>
+
[%- END %]
=head1 DESCRIPTION
=head1 DESCRIPTION
@@
-167,6
+175,10
@@
redirect should occur.
Each search must check rights and must not present a backdoor into data that
the user should not see.
Each search must check rights and must not present a backdoor into data that
the user should not see.
+=item *
+
+By design the search must not try to guess C<exact matches>.
+
=back
=head1 INTERFACE
=back
=head1 INTERFACE
@@
-175,7
+187,7
@@
The full interface is described in L<SL::Controller::TopQuickSeach::Base>
=head1 TODO
=head1 TODO
- - toggling with cofiguration doesn't work yet
+ * user configuration
=head1 BUGS
=head1 BUGS