Skip to content

Commit

Permalink
Fix: bug on document variable name on output_ubl method (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmigf authored Oct 23, 2023
1 parent 56045b2 commit 05401de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/documents/abstract-wcpdf-order-document.php
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ public function output_ubl( $contents_only = false ) {
return $contents;
}

$filename = $order_document->get_filename( 'download', array( 'output' => 'ubl' ) );
$filename = $document->get_filename( 'download', array( 'output' => 'ubl' ) );
$full_filename = $ubl_maker->write( $filename, $contents );
$quoted = sprintf( '"%s"', addcslashes( basename( $full_filename ), '"\\' ) );
$size = filesize( $full_filename );
Expand Down

0 comments on commit 05401de

Please sign in to comment.