X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FTopQuickSearch.pm;h=7a014302126652ee3870e04eba64429716bcfa63;hb=ba9e2e01d2662182f04da256e0ff7ce258428332;hp=b72174928d54241ff655b3b9efc4032ea0f40a84;hpb=4e070acf473ae9992a3561594cce55123be0a7ec;p=kivitendo-erp.git
diff --git a/SL/Controller/TopQuickSearch.pm b/SL/Controller/TopQuickSearch.pm
index b72174928..7a0143021 100644
--- a/SL/Controller/TopQuickSearch.pm
+++ b/SL/Controller/TopQuickSearch.pm
@@ -17,7 +17,13 @@ my @available_modules = (
'SL::Controller::TopQuickSearch::Service',
'SL::Controller::TopQuickSearch::Assembly',
'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::Customer',
+ 'SL::Controller::TopQuickSearch::Vendor',
);
my %modules_by_name;
@@ -115,13 +121,14 @@ SL::Controller::TopQuickSearch - Framework for pluggable quicksearch fields in t
=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 %]
-
-[%- END %]
+ # in template
+ [%- FOREACH module = search.enabled_modules %]
+
+ [%- END %]
=head1 DESCRIPTION
@@ -167,6 +174,10 @@ redirect should occur.
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.
+
=back
=head1 INTERFACE
@@ -175,7 +186,7 @@ The full interface is described in L
=head1 TODO
- - toggling with cofiguration doesn't work yet
+ * user configuration
=head1 BUGS