X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FPage%2FLabelFormats.php;h=3fc46604a5b385ec4c86d3182d1df62d339af37b;hb=b3e9c9350327f9494c4bf8897c34201a653ed4d1;hp=8c25975a4678a0ebd6c60fec74bde253153894b0;hpb=b830793758190aabf57cb213713e6cca0b1f2b82;p=civicrm-core.git diff --git a/CRM/Admin/Page/LabelFormats.php b/CRM/Admin/Page/LabelFormats.php index 8c25975a46..3fc46604a5 100644 --- a/CRM/Admin/Page/LabelFormats.php +++ b/CRM/Admin/Page/LabelFormats.php @@ -124,6 +124,9 @@ class CRM_Admin_Page_LabelFormats extends CRM_Core_Page_Basic { * @static */ function browse($action = NULL) { + if (CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME, 'ajax_popups_enabled', NULL, TRUE)) { + CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'js/crm.livePage.js'); + } // Get list of configured Label Formats $labelFormatList= CRM_Core_BAO_LabelFormat::getList(); $nameFormatList= CRM_Core_BAO_LabelFormat::getList(false, 'name_badge'); @@ -131,7 +134,7 @@ class CRM_Admin_Page_LabelFormats extends CRM_Core_Page_Basic { // Add action links to each of the Label Formats foreach ($labelFormatList as & $format) { $action = array_sum(array_keys($this->links())); - if (CRM_Utils_Array::value('is_reserved', $format)) { + if (!empty($format['is_reserved'])) { $action -= CRM_Core_Action::DELETE; }