X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FTopQuickSearch%2FContact.pm;h=e0e915d91448f3f866699ea7ce1f7188d189a069;hb=d4c5ff04f33e7fe29e079c4489c4126a7ea2493c;hp=322df37637472e3e164a33df188285026fc7de11;hpb=4cdfbd752ecf4b5d134da8643c62c213b86c69dc;p=kivitendo-erp.git diff --git a/SL/Controller/TopQuickSearch/Contact.pm b/SL/Controller/TopQuickSearch/Contact.pm index 322df3763..e0e915d91 100644 --- a/SL/Controller/TopQuickSearch/Contact.pm +++ b/SL/Controller/TopQuickSearch/Contact.pm @@ -8,7 +8,7 @@ use SL::DB::Vendor; use SL::DBUtils qw(selectfirst_array_query like); use SL::Locale::String qw(t8); -sub auth { 'customer_vendor_edit' } +sub auth { undef } sub name { 'contact' } @@ -58,7 +58,7 @@ sub select_autocomplete { my $contact = SL::DB::Manager::Contact->find_by(cp_id => $::form->{id}); - SL::Controller::CustomerVendor->new->url_for(action => 'edit', id => $contact->cp_cv_id, db => db_for_contact($contact)); + SL::Controller::CustomerVendor->new->url_for(action => 'edit', id => $contact->cp_cv_id, contact_id => $contact->cp_id, db => db_for_contact($contact), fragment => 'contacts'); } sub do_search {