Skip to content

Commit

Permalink
Merge pull request #18726 from demeritcowboy/static-pdfformat
Browse files Browse the repository at this point in the history
dev/core#2110 - Warning "Non-static method CRM_Contact_Page_AJAX::pdfFormat() should not be called statically" when changing the page format on print/merge document
  • Loading branch information
seamuslee001 authored Oct 10, 2020
2 parents 6ed4a27 + 91aafe9 commit 5a7e2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Contact/Page/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ public static function markNonDuplicates($cid, $oid, $oper) {
/**
* Retrieve a PDF Page Format for the PDF Letter form.
*/
public function pdfFormat() {
public static function pdfFormat() {
$formatId = CRM_Utils_Type::escape($_REQUEST['formatId'], 'Integer');

$pdfFormat = CRM_Core_BAO_PdfFormat::getById($formatId);
Expand Down

0 comments on commit 5a7e2ac

Please sign in to comment.