From 1d133cb600c9dc9c097e2baba79cfda5f632c80f Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 17 Jun 2015 11:13:30 -0700 Subject: [PATCH] CRM-16700 - Fix notice on Print PDF Letters from search task. ---------------------------------------- * CRM-16700: Notice pdfformat when creating pdf letters https://issues.civicrm.org/jira/browse/CRM-16700 --- CRM/Core/BAO/PdfFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/PdfFormat.php b/CRM/Core/BAO/PdfFormat.php index 6778b5fa93..23e548ad18 100644 --- a/CRM/Core/BAO/PdfFormat.php +++ b/CRM/Core/BAO/PdfFormat.php @@ -306,7 +306,7 @@ class CRM_Core_BAO_PdfFormat extends CRM_Core_DAO_OptionValue { foreach (self::$optionValueFields as $name => $field) { if (!isset($values[$name])) { $values[$name] = $field['default']; - if ($field['metric']) { + if (isset($field['metric']) && $field['metric']) { $values[$name] = CRM_Utils_PDF_Utils::convertMetric($field['default'], self::$optionValueFields['metric']['default'], $values['metric'], 3 -- 2.25.1