Skip to content

Commit 1605617

Browse files
committed
Update command XML path
1 parent 9db7b1a commit 1605617

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/JasperPHP/JasperPHP.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ public function process($input_file, $output_file = false, $format = array('pdf'
134134
if ( isset($db_connection['db_sid']) && !empty($db_connection['db_sid']) )
135135
$command .= ' --db-sid ' . $db_connection['db_sid'];
136136

137-
if ( isset($db_connection['data_file']) )
137+
if ( isset($db_connection['xml_xpath']) )
138+
$command .= ' --xml-xpath ' . $db_connection['xml_xpath'];
139+
140+
if ( isset($db_connection['data_file']) )
138141
$command .= ' --data-file ' . $db_connection['data_file'];
139142

140143
}

0 commit comments

Comments
 (0)