Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Filter params options #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Filter params options #25

wants to merge 2 commits into from

Conversation

lucassch
Copy link
Contributor

Also fixed bug with special characters params values

@@ -95,7 +105,8 @@ public function process($input_file, $output_file = false, $format = array("pdf"
$command .= " -P";
foreach ($parameters as $key => $value)
{
$command .= " " . $key . "=" . $value;
if(!$filter_params || in_array($key, $params_output))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @lucassch what is the purpose of this IF?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @cossou!

It must add parameter only when is not filtering parameters or when parameter exists in output.
I've created this filter because my app have forms who process multiple reports who have different parameters.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants