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

Update JasperPHP.php #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update JasperPHP.php
XML data source XPath
xIDMONx authored Oct 30, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 5e1af428ebc3a7409eafeef96fc8d9b3bc466996
3 changes: 3 additions & 0 deletions src/JasperPHP/JasperPHP.php
Original file line number Diff line number Diff line change
@@ -138,6 +138,9 @@ public function process($input_file, $output_file = false, $format = array("pdf"

if ( isset($db_connection['data_file']) && !empty($db_connection['data_file']) )
$command .= ' --data-file ' . $db_connection['data_file'];

if(isset($db_connection['xml_xpath']) && !empty($db_connection['xml_xpath']))
$command .= ' --xml-xpath ' . $db_connection['xml_xpath'];

}