From: Dave Greenberg Date: Wed, 17 Jun 2015 18:13:30 +0000 (-0700) Subject: CRM-16700 - Fix notice on Print PDF Letters from search task. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1d133cb600c9dc9c097e2baba79cfda5f632c80f;p=civicrm-core.git 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 --- 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