Skip to content

Commit c84b82b

Browse files
author
Stephen
committed
fix broken collections output
Was getting ref in the wrong place, before the loop.
1 parent b8f45c6 commit c84b82b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

include/general.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ function create_pdf_export_pdf($ref,$is_collection=false,$size="letter",$cleanup
5050
$pdfhttppath=get_pdf_export_file_path($ref,false,"pdf");
5151
$jpghttppath=get_pdf_export_file_path($ref,false,"jpg");
5252
$onetimenotes=getvalescaped("onetimenotes","");
53-
if(function_exists("ssrscm")){
54-
$cprealref=ssrscm($ref);
55-
} else {
56-
$cprealref = $ref;
57-
}
53+
5854

5955
class MYPDF extends TCPDF {
6056

@@ -185,6 +181,11 @@ public function MultiRow($left, $right) {
185181
$currentpdfpage=$pdf->getPage();
186182
$resourcedata= $resources[$n];
187183
$ref=$resources[$n]['ref'];
184+
if(function_exists("ssrscm")){
185+
$cprealref=ssrscm($ref);
186+
} else {
187+
$cprealref = $ref;
188+
}
188189
$access=get_resource_access($resources[$n]['ref']); // feed get_resource_access the resource array rather than the ref, since access is included.
189190
$use_watermark=check_use_watermark();
190191
if ($imagesizeidvar) {

0 commit comments

Comments
 (0)