ClientJS-Erzeugung: Unterstützung für <ARGn> mit "n" eine beliebige Ziffer
[kivitendo-erp.git] / scripts / generate_client_js_actions.pl
index d2219a1..448a42c 100755 (executable)
@@ -47,6 +47,7 @@ foreach my $action (@actions) {
     $call        =~ s/<TARGET>/'action[1]'/eg;
     $call        =~ s/<FUNCTION>/$function/eg;
     $call        =~ s/<ARGS>/$args/eg;
+    $call        =~ s/<ARG(\d+)>/'action[' . ($1 + 1) . ']'/eg;
 
     $output .= $call . ";\n";
     $first   = 0;