dev/core#337 Add in upgrade script to set search by range to be false for Fields...
authorSeamus Lee <seamuslee001@gmail.com>
Wed, 2 Jan 2019 21:30:00 +0000 (08:30 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 2 Jan 2019 21:30:00 +0000 (08:30 +1100)
CRM/Upgrade/Incremental/php/FiveNine.php
CRM/Upgrade/Incremental/sql/5.9.beta1.mysql.tpl

index 5c8f84b94391d53e4883c48de38957fab2cefa3b..d49dae931cb2a172f71b35241cc700d9808a4a9d 100644 (file)
@@ -61,7 +61,7 @@ class CRM_Upgrade_Incremental_php_FiveNine extends CRM_Upgrade_Incremental_Base
         2 => ts('Email on Hold'),
       );
       $postUpgradeMessage .= '<p>' . ts('If the setting "%1" is enabled, you should update any smart groups based on the "%2" field.', $args) . '</p>' .
-        '<p>' . ts('If you were previously on version 5.8 and altered the WYSIWYG editor setting, you should visit the <a %1>Display Preferences</a> page and re-save the WYSIWYG editor setting.', array(1 => 'href="' . CRM_Utils_System::url('civicrm/admin/setting/preferences/display', 'reset=1') . '"')) . '</p>';
+        '<p>' . ts('If you were previously on version 5.8 and altered the WYSIWYG editor setting, you should visit the <a %1>Display Preferences</a> page and re-save the WYSIWYG editor setting.', array(1 => 'href="' . CRM_Utils_System::url('civicrm/admin/setting/preferences/display', 'reset=1') . '"')) . '</p><p>' . ts('If you have any custom fields of type Money, Int or Float, The search by range checkbox has been unchecked for these fields. If you wish to search by range on those fields you must re-set the checkbox') . '</p>';
     }
 
     // Example: Generate a post-upgrade message.
index a17357675038ccbbf1de07c1ef6403a9cb978aa2..94535862f06650ddeffc86c44585321d828a0388 100644 (file)
@@ -1 +1,4 @@
 {* file to handle db changes in 5.9.beta1 during upgrade *}
+
+{* dev/core#337 Set search by range to be false which was the effect of the original implementation of any Money, Float, Int fields where the widget was Radio or Select *}
+UPDATE civicrm_custom_field SET is_search_range = 0 WHERE html_type IN ('Radio', 'Select') AND data_type IN ('Money', 'Float', 'Int');