Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] - Multiple values in $tab_options['LIEN_CHAMP'] #1460

Open
somzoli opened this issue Dec 1, 2022 · 0 comments
Open

[FEATURE] - Multiple values in $tab_options['LIEN_CHAMP'] #1460

somzoli opened this issue Dec 1, 2022 · 0 comments

Comments

@somzoli
Copy link

somzoli commented Dec 1, 2022

If i understand correctly it is not possible to pass multiple value in $tab_options['LIEN_CHAMP'] in extensions. It would be useful to pass multiple value in that variable.

Can you provide a solution to do this?

Example:

$list_fields = array(
"Param1" => "PARAM1",
"Param2" => "PARAM2",
);

// Create link to see al machines
$tab_options['LIEN_LBL']['Number of Hosts']="index.php?".PAG_INDEX."=ms_astron&data=";
//Want to pass 2 value: PARAM1 & PARAM2
$tab_options['LIEN_CHAMP']['Number of Hosts']="PARAM1 && PARAM2";
...

$data = $protectedGet['data'];
$sql = ... WHERE PARAM1= '$data['PARAM1']' AND PARAM2= '$data['PARAM2']';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants