Skip to content

Commit

Permalink
Update to CiviCRM 5.5.3. This release includes a number of bug fixes …
Browse files Browse the repository at this point in the history
…and improvements, including database changes. Read more about the changes: https://civicrm.org/blog/dev-team/announcing-civicrm-55-release and https://civicrm.org/blog/dev-team/announcing-civicrm-54-release.

Make sure you backup using Pantheon's database backup tool first. Then either go to http://<your_drupal_home>/civicrm/upgrade?reset=1 or use terminus drush site.env civicrm-upgrade-db. Fully test on a dev environment before upgrading on live. Don't merge this code yet if you've got other updates which are urgent.

If you have questions contact http://civicrmstarterkit.org/contact. We provide some basic general support for the public. If you require help with your specific website there will likely be a cost.
  • Loading branch information
herbdool committed Sep 27, 2018
1 parent 9035027 commit 16d83fb
Show file tree
Hide file tree
Showing 47 changed files with 330 additions and 173 deletions.
2 changes: 1 addition & 1 deletion profiles/civicrm_starterkit/civicrm_starterkit.make
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ projects[drupal][version] = "7.51"
; ====== CIVICRM RELATED =========

libraries[civicrm][download][type] = get
libraries[civicrm][download][url] = "https://download.civicrm.org/civicrm-5.5.1-drupal.tar.gz"
libraries[civicrm][download][url] = "https://download.civicrm.org/civicrm-5.5.3-drupal.tar.gz"
libraries[civicrm][destination] = modules
libraries[civicrm][directory_name] = civicrm

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2032,8 +2032,10 @@ public static function createProfileContact(
CRM_Contact_BAO_GroupContact::create($params['group'], $contactID, $visibility, $method);
}

if (!empty($fields['tag'])) {
CRM_Core_BAO_EntityTag::create($params['tag'], 'civicrm_contact', $contactID);
if (!empty($fields['tag']) && array_key_exists('tag', $params)) {
// Convert comma separated form values from select2 v3
$tags = is_array($params['tag']) ? $params['tag'] : array_fill_keys(array_filter(explode(',', $params['tag'])), 1);
CRM_Core_BAO_EntityTag::create($tags, 'civicrm_contact', $contactID);
}

//to add profile in default group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,21 @@ public function setPostUpgradeMessage(&$postUpgradeMessage, $rev) {
// return TRUE;
// }

/**
* Upgrade function.
*
* @param string $rev
*/
public function upgrade_5_5_2($rev) {
$this->addTask(ts('Upgrade DB to %1: SQL', array(1 => $rev)), 'runSql', $rev);
$this->addTask('dev/core#107 - Add Activity\'s default assignee options', 'addActivityDefaultAssigneeOptions');
}

public static function addActivityDefaultAssigneeOptions() {
// This data was originally added via upgrader in 5.4.alpha1. However, it was omitted from the
// default data for new installations. Re-running the upgrader should fix sites initialized
// between 5.4.alpha1-5.5.1.
return CRM_Upgrade_Incremental_php_FiveFour::addActivityDefaultAssigneeOptions();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{* file to handle db changes in 5.5.2 during upgrade *}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#fix typo when setting default in https://github.com/civicrm/civicrm-core/pull/12410
ALTER TABLE civicrm_option_group MODIFY COLUMN is_locked TINYINT(4) NOT NULL DEFAULT 0 COMMENT 'A lock to remove the ability to add new options via the UI.';

UPDATE civicrm_option_group
SET is_locked = 0
WHERE name REGEXP '.*_2018[0-9]+$'
AND id IN (SELECT DISTINCT option_group_id FROM civicrm_custom_field);
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jstree",
"license": "MIT",
"version": "3.3.5",
"version": "3.3.6",
"main": [
"./dist/jstree.js",
"./dist/themes/default/style.css"
Expand Down Expand Up @@ -31,11 +31,11 @@
"jstree"
],
"homepage": "https://github.com/vakata/jstree",
"_release": "3.3.5",
"_release": "3.3.6",
"_resolution": {
"type": "version",
"tag": "3.3.5",
"commit": "0097fab41981daf36c234b73b683166daabd5f28"
"tag": "3.3.6",
"commit": "39d167dc3f931fa95e588d4d106d9b44cbcdb6f9"
},
"_source": "https://github.com/vakata/jstree.git",
"_target": "~3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jstree",
"license": "MIT",
"version": "3.3.5",
"version": "3.3.6",
"main" : [
"./dist/jstree.js",
"./dist/themes/default/style.css"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}(function ($, undefined) {
"use strict";
/*!
* jsTree 3.3.5
* jsTree 3.3.6
* http://jstree.com/
*
* Copyright (c) 2014 Ivan Bozhanov (http://vakata.com)
Expand Down Expand Up @@ -54,7 +54,7 @@
* specifies the jstree version in use
* @name $.jstree.version
*/
version : '3.3.5',
version : '3.3.6',
/**
* holds all the default options used when creating new instances
* @name $.jstree.defaults
Expand Down Expand Up @@ -430,7 +430,7 @@
*/
force_text : false,
/**
* Should the node should be toggled if the text is double clicked . Defaults to `true`
* Should the node be toggled if the text is double clicked. Defaults to `true`
* @name $.jstree.defaults.core.dblclick_toggle
*/
dblclick_toggle : true,
Expand Down Expand Up @@ -1331,7 +1331,7 @@
return true;
},
/**
* load an array of nodes (will also load unavailable nodes as soon as the appear in the structure). Used internally.
* load an array of nodes (will also load unavailable nodes as soon as they appear in the structure). Used internally.
* @private
* @name _load_nodes(nodes [, callback])
* @param {array} nodes
Expand Down Expand Up @@ -2608,7 +2608,7 @@
return node;
},
/**
* opens a node, revaling its children. If the node is not loaded it will be loaded and opened once ready.
* opens a node, revealing its children. If the node is not loaded it will be loaded and opened once ready.
* @name open_node(obj [, callback, animation])
* @param {mixed} obj the node to open
* @param {Function} callback a function to execute once the node is opened
Expand Down Expand Up @@ -2812,7 +2812,7 @@
}
},
/**
* opens all nodes within a node (or the tree), revaling their children. If the node is not loaded it will be loaded and opened once ready.
* opens all nodes within a node (or the tree), revealing their children. If the node is not loaded it will be loaded and opened once ready.
* @name open_all([obj, animation, original_obj])
* @param {mixed} obj the node to open recursively, omit to open all nodes in the tree
* @param {Number} animation the animation duration in milliseconds when opening the nodes, the default is no animation
Expand Down Expand Up @@ -2853,7 +2853,7 @@
}
},
/**
* closes all nodes within a node (or the tree), revaling their children
* closes all nodes within a node (or the tree), revealing their children
* @name close_all([obj, animation])
* @param {mixed} obj the node to close recursively, omit to close all nodes in the tree
* @param {Number} animation the animation duration in milliseconds when closing the nodes, the default is no animation
Expand Down Expand Up @@ -4491,7 +4491,7 @@
w2 = ai.width() * ai.length,
*/
t = default_text;
h1 = $("<"+"div />", { css : { "position" : "absolute", "top" : "-200px", "left" : (rtl ? "0px" : "-1000px"), "visibility" : "hidden" } }).appendTo("body");
h1 = $("<"+"div />", { css : { "position" : "absolute", "top" : "-200px", "left" : (rtl ? "0px" : "-1000px"), "visibility" : "hidden" } }).appendTo(document.body);
h2 = $("<"+"input />", {
"value" : t,
"class" : "jstree-rename-input",
Expand Down Expand Up @@ -5922,7 +5922,7 @@
return res;
};
this.refresh = function (skip_loading, forget_state) {
if(!this.settings.checkbox.tie_selection) {
if(this.settings.checkbox.tie_selection) {
this._data.checkbox.selected = [];
}
return parent.refresh.apply(this, arguments);
Expand Down Expand Up @@ -6424,7 +6424,7 @@
vakata_context.element.html(vakata_context.html);
}
if(vakata_context.items.length) {
vakata_context.element.appendTo("body");
vakata_context.element.appendTo(document.body);
e = vakata_context.element;
x = vakata_context.position_x;
y = vakata_context.position_y;
Expand Down Expand Up @@ -6480,7 +6480,7 @@
}
};
$(function () {
right_to_left = $("body").css("direction") === "rtl";
right_to_left = $(document.body).css("direction") === "rtl";
var to = false;

vakata_context.element = $("<ul class='vakata-context'></ul>");
Expand Down Expand Up @@ -6768,11 +6768,23 @@
marker = $('<div id="jstree-marker">&#160;</div>').hide(); //.appendTo('body');

$(document)
.on('dragover.vakata.jstree', function (e) {
if (elm) {
$.vakata.dnd._trigger('move', e, { 'helper': $(), 'element': elm, 'data': drg });
}
})
.on('drop.vakata.jstree', function (e) {
if (elm) {
$.vakata.dnd._trigger('stop', e, { 'helper': $(), 'element': elm, 'data': drg });
elm = null;
drg = null;
}
})
.on('dnd_start.vakata.jstree', function (e, data) {
lastmv = false;
lastev = false;
if(!data || !data.data || !data.data.jstree) { return; }
marker.appendTo('body'); //.show();
marker.appendTo(document.body); //.show();
})
.on('dnd_move.vakata.jstree', function (e, data) {
var isDifferentNode = data.event.target !== lastev.target;
Expand Down Expand Up @@ -6906,7 +6918,7 @@
lastmv = false;
data.helper.find('.jstree-icon').removeClass('jstree-ok').addClass('jstree-er');
if (data.event.originalEvent && data.event.originalEvent.dataTransfer) {
data.event.originalEvent.dataTransfer.dropEffect = 'none';
//data.event.originalEvent.dataTransfer.dropEffect = 'none';
}
marker.hide();
})
Expand Down Expand Up @@ -7117,7 +7129,7 @@
Math.abs(e.pageY - vakata_dnd.init_y) > (vakata_dnd.is_touch ? $.vakata.dnd.settings.threshold_touch : $.vakata.dnd.settings.threshold)
) {
if(vakata_dnd.helper) {
vakata_dnd.helper.appendTo("body");
vakata_dnd.helper.appendTo(document.body);
vakata_dnd.helper_w = vakata_dnd.helper.outerWidth();
}
vakata_dnd.is_drag = true;
Expand Down

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,14 @@
transition: background-color 0.15s, box-shadow 0.15s;
}
.jstree-default-dark .jstree-hovered {
background: #555555;
background: #555;
border-radius: 2px;
box-shadow: inset 0 0 1px #555555;
box-shadow: inset 0 0 1px #555;
}
.jstree-default-dark .jstree-context {
background: #555555;
background: #555;
border-radius: 2px;
box-shadow: inset 0 0 1px #555555;
box-shadow: inset 0 0 1px #555;
}
.jstree-default-dark .jstree-clicked {
background: #5fa2db;
Expand Down Expand Up @@ -347,13 +347,13 @@
box-shadow: none;
}
.jstree-default-dark.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered {
background: #555555;
background: #555;
}
.jstree-default-dark.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked {
background: transparent;
}
.jstree-default-dark.jstree-checkbox-no-clicked > .jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered {
background: #555555;
background: #555;
}
.jstree-default-dark > .jstree-striped {
min-width: 100%;
Expand All @@ -372,7 +372,7 @@
box-sizing: border-box;
}
.jstree-default-dark .jstree-wholerow-hovered {
background: #555555;
background: #555;
}
.jstree-default-dark .jstree-wholerow-clicked {
background: #5fa2db;
Expand Down Expand Up @@ -554,9 +554,6 @@
text-overflow: ellipsis;
overflow: hidden;
}
.jstree-default-dark .jstree-ellipsis.jstree-no-icons .jstree-anchor {
width: calc(100% - 5px);
}
.jstree-default-dark.jstree-rtl .jstree-node {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
}
Expand Down Expand Up @@ -738,9 +735,6 @@
text-overflow: ellipsis;
overflow: hidden;
}
.jstree-default-dark-small .jstree-ellipsis.jstree-no-icons .jstree-anchor {
width: calc(100% - 5px);
}
.jstree-default-dark-small.jstree-rtl .jstree-node {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==");
}
Expand Down Expand Up @@ -922,9 +916,6 @@
text-overflow: ellipsis;
overflow: hidden;
}
.jstree-default-dark-large .jstree-ellipsis.jstree-no-icons .jstree-anchor {
width: calc(100% - 5px);
}
.jstree-default-dark-large.jstree-rtl .jstree-node {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==");
}
Expand Down Expand Up @@ -1012,13 +1003,13 @@
background: transparent;
}
.jstree-default-dark-responsive .jstree-open > .jstree-ocl {
background-position: 0 0px !important;
background-position: 0 0 !important;
}
.jstree-default-dark-responsive .jstree-closed > .jstree-ocl {
background-position: 0 -40px !important;
}
.jstree-default-dark-responsive.jstree-rtl .jstree-closed > .jstree-ocl {
background-position: -40px 0px !important;
background-position: -40px 0 !important;
}
.jstree-default-dark-responsive .jstree-themeicon {
background-position: -40px -40px;
Expand Down Expand Up @@ -1046,13 +1037,13 @@
background: transparent;
}
.jstree-default-dark-responsive .jstree-wholerow {
border-top: 1px solid #666666;
border-bottom: 1px solid #000000;
border-top: 1px solid #666;
border-bottom: 1px solid #000;
background: #333333;
height: 40px;
}
.jstree-default-dark-responsive .jstree-wholerow-hovered {
background: #555555;
background: #555;
}
.jstree-default-dark-responsive .jstree-wholerow-clicked {
background: #5fa2db;
Expand Down

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,6 @@
text-overflow: ellipsis;
overflow: hidden;
}
.jstree-default .jstree-ellipsis.jstree-no-icons .jstree-anchor {
width: calc(100% - 5px);
}
.jstree-default.jstree-rtl .jstree-node {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==");
}
Expand Down Expand Up @@ -738,9 +735,6 @@
text-overflow: ellipsis;
overflow: hidden;
}
.jstree-default-small .jstree-ellipsis.jstree-no-icons .jstree-anchor {
width: calc(100% - 5px);
}
.jstree-default-small.jstree-rtl .jstree-node {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==");
}
Expand Down Expand Up @@ -922,9 +916,6 @@
text-overflow: ellipsis;
overflow: hidden;
}
.jstree-default-large .jstree-ellipsis.jstree-no-icons .jstree-anchor {
width: calc(100% - 5px);
}
.jstree-default-large.jstree-rtl .jstree-node {
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAACAQMAAAAD0EyKAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjgIIGBgABCgCBvVLXcAAAAABJRU5ErkJggg==");
}
Expand Down Expand Up @@ -1012,13 +1003,13 @@
background: transparent;
}
.jstree-default-responsive .jstree-open > .jstree-ocl {
background-position: 0 0px !important;
background-position: 0 0 !important;
}
.jstree-default-responsive .jstree-closed > .jstree-ocl {
background-position: 0 -40px !important;
}
.jstree-default-responsive.jstree-rtl .jstree-closed > .jstree-ocl {
background-position: -40px 0px !important;
background-position: -40px 0 !important;
}
.jstree-default-responsive .jstree-themeicon {
background-position: -40px -40px;
Expand Down

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@
return res;
};
this.refresh = function (skip_loading, forget_state) {
if(!this.settings.checkbox.tie_selection) {
if(this.settings.checkbox.tie_selection) {
this._data.checkbox.selected = [];
}
return parent.refresh.apply(this, arguments);
Expand Down
Loading

0 comments on commit 16d83fb

Please sign in to comment.