default value for otpions-url
authorTim Mallezie <tim.mallezie@chiro.be>
Tue, 31 Mar 2015 07:22:26 +0000 (09:22 +0200)
committerTim Mallezie <tim.mallezie@chiro.be>
Tue, 31 Mar 2015 07:22:26 +0000 (09:22 +0200)
CRM/Core/Form.php

index 4d67f2e778a3d9c0b26a9c41169884f296e1dab9..68f7197fed857a931a0a1c9c0ddf569c4c2f0f25 100644 (file)
@@ -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'))) {