Auftrags-Controller: weitere Links hierhin bei experimentellen Features
[kivitendo-erp.git] / SL / Controller / DeliveryPlan.pm
index 6e6eed4..95db7ff 100644 (file)
@@ -369,7 +369,11 @@ sub link_to {
     my $vc     = $object->is_sales ? 'customer' : 'vendor';
     my $id     = $object->id;
 
-    return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
+    if ($::instance_conf->get_feature_experimental) {
+      return "controller.pl?action=Order/$action&type=$type&id=$id";
+    } else {
+      return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
+    }
   }
   if ($object->isa('SL::DB::Part')) {
     my $id     = $object->id;