X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FController%2FTopQuickSearch%2FOERecord.pm;h=ecbca130067e81ab32fcd8f0ee732897396997dc;hb=b1e1ad26766dc4c64000c33cf3a71d3e0cdea8f1;hp=f166edbd7053e495368d2f759236a11e21deb772;hpb=acba025a9a6fe28250a1006814e25a45460a9941;p=kivitendo-erp.git diff --git a/SL/Controller/TopQuickSearch/OERecord.pm b/SL/Controller/TopQuickSearch/OERecord.pm index f166edbd7..ecbca1300 100644 --- a/SL/Controller/TopQuickSearch/OERecord.pm +++ b/SL/Controller/TopQuickSearch/OERecord.pm @@ -64,21 +64,30 @@ sub redirect_to_search { } sub redirect_to_object { - SL::Controller::Base->new->url_for( - controller => 'oe.pl', - action => 'edit', - type => $_[0]->type, - vc => $_[0]->vc, - id => $_[1], - ); + if ($::instance_conf->get_feature_experimental) { + SL::Controller::Base->new->url_for( + controller => 'Order', + action => 'edit', + type => $_[0]->type, + id => $_[1], + ); + } else { + SL::Controller::Base->new->url_for( + controller => 'oe.pl', + action => 'edit', + type => $_[0]->type, + vc => $_[0]->vc, + id => $_[1], + ); + } } sub type { - ... + die 'must be overwritten' } sub cv { - ... + die 'must be overwritten' } sub quotation { @@ -106,7 +115,7 @@ sub init_models { by => 'transdate', dir => 0, }, - transdate => t8('Transdate'), + transdate => t8('Date'), }, paginated => { per_page => 10,