Skip to content

Commit

Permalink
Merge pull request #13384 from seamuslee001/dev_core_337
Browse files Browse the repository at this point in the history
dev/core#337 Add in upgrade script to set search by range to be false…
  • Loading branch information
seamuslee001 authored Jan 2, 2019
2 parents c7b6016 + d33bae2 commit 4bf8a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Upgrade/Incremental/php/FiveNine.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) {
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.
Expand Down
3 changes: 3 additions & 0 deletions CRM/Upgrade/Incremental/sql/5.9.beta1.mysql.tpl
Original file line number Diff line number Diff line change
@@ -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');

0 comments on commit 4bf8a3c

Please sign in to comment.