X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FTopQuickSearch%2FOERecord.pm;h=d63dee03cbbd62cd14011ade26be2f5f53a8d623;hb=2b5c7398acb453bffc50dababebf6ee46e7fc134;hp=adac74adf97955348e53c25c471be71fe1f23a83;hpb=23c5a95043040ef7c0eb84b160b701099a550a28;p=kivitendo-erp.git diff --git a/SL/Controller/TopQuickSearch/OERecord.pm b/SL/Controller/TopQuickSearch/OERecord.pm index adac74adf..d63dee03c 100644 --- a/SL/Controller/TopQuickSearch/OERecord.pm +++ b/SL/Controller/TopQuickSearch/OERecord.pm @@ -15,11 +15,11 @@ use Rose::Object::MakeMethods::Generic ( # nope. this is only for subclassing sub auth { 'NOT ALLOWED' } -sub name { ... } +sub name { die 'must be overwritten' } -sub description_config { ... } +sub description_config { die 'must be overwritten' } -sub description_field { ... } +sub description_field { die 'must be overwritten' } sub query_autocomplete { my ($self) = @_; @@ -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_order) { + 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,