From 5ba3b7b8a5c9a7293500328647c8efa3a2cffdeb Mon Sep 17 00:00:00 2001 From: Tim Mallezie Date: Tue, 31 Mar 2015 09:22:26 +0200 Subject: [PATCH] default value for otpions-url --- CRM/Core/Form.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 4d67f2e778..68f7197fed 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1221,6 +1221,10 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $props['class'] .= ' huge'; $props['multiple'] = 'multiple'; } + // Set default options-url value. + if ((!isset($props['options-url']))) { + $props['options-url'] = TRUE; + } // Add data for popup link. if ((isset($props['options-url']) && $props['options-url']) && ($props['context'] != 'search' && $widget == 'Select' && CRM_Core_Permission::check('administer CiviCRM'))) { -- 2.25.1