sc_link not working with variables

Hello,

Using 7.01.0002, after the update I’m unable to use sc_link macro with a variable. Here’s my code:

sc_link(link,$request_type,“Save Parts” ,“modal”, $height, $width);

Modal window opens showing the following error:
The requested URL /scriptcase7/app/ILCM/$request_type/save_part.php was not found on this server.

The correct link should be:
/scriptcase7/app/ILCM/save_part/save_part.php

These code was working before the update, please fix asap.

Regards,
Misael.

Try:


[request_type] = 'save_part';
sc_link(link, [request_type], , "Save Parts", "modal", $height, $width);

(With request_type as global variable, not as local … See the documentation for sc_link)

Read in the documentation is really nonsense … Since I made ​​a mistake. But, it works for me with a link to a .pdf file only if I pass the file name including the path to a global variable.

[sURL] = "/myPath/myFilename.pdf";
sc_link (Status, [sURL], , $sBeleg, "_blank");

This is not working:

$sURL = "/myPath/myFilename.pdf";
sc_link (Status, $sURL, , $sBeleg, "_blank");

I think, this is a bug …

I just tried using a global variables and didn’t work. I can deal with bugs in new features, but this is not the case.

Hello,

Issue reported to our bugs team.

regards,
Bernhard Bernsmann