Menu: menu.pl links entfernt
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 16 Jul 2015 13:26:48 +0000 (15:26 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Mon, 20 Jul 2015 14:37:27 +0000 (16:37 +0200)
scripts/migrate_menu.pl

index a27a07c..89e5abe 100644 (file)
@@ -64,6 +64,13 @@ sub translate_to_yaml {
       delete $item->{submenu};
     }
 
+    #sanitize those stupid menu inlinks
+    if ($item->{module} eq 'menu.pl') {
+      delete $item->{module};
+      delete $item->{action};
+      delete $item->{target};
+    }
+
     # sanitize INSTANCE_CONF
     if ($item->{INSTANCE_CONF}) {
       my $instance_conf = delete $item->{INSTANCE_CONF};