]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/Controller/TopQuickSearch/OERecord.pm
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / Controller / TopQuickSearch / OERecord.pm
index 8379608d4cdc7dad95eda63beb306ba77516393f..d63dee03cbbd62cd14011ade26be2f5f53a8d623 100644 (file)
@@ -64,13 +64,22 @@ 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 {