Skip to content

Commit

Permalink
Merge pull request #2789 from compucorp/staging
Browse files Browse the repository at this point in the history
Sync master with staging
  • Loading branch information
davialexandre authored Jul 24, 2018
2 parents a6665f9 + 40b76c1 commit 15943b5
Show file tree
Hide file tree
Showing 330 changed files with 7,609 additions and 7,619 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pipeline {
steps {
script {
// Build site with CV Buildkit
sh "civibuild create ${params.CIVIHR_BUILDNAME} --type drupal-clean --civi-ver 5.3.0 --url $WEBURL --admin-pass $ADMIN_PASS"
sh "civibuild create ${params.CIVIHR_BUILDNAME} --type drupal-clean --civi-ver 5.3.1 --url $WEBURL --admin-pass $ADMIN_PASS"

// Get target and PR branches name
def prBranch = env.CHANGE_BRANCH
Expand Down
4 changes: 2 additions & 2 deletions com.civicrm.hrjobroles/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>Compucorp Ltd</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
2 changes: 1 addition & 1 deletion com.civicrm.hrjobroles/js/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function (config) {
civihrPath + 'uk.co.compucorp.civicrm.hrcore/node_modules/karma-requirejs/lib/adapter.js',

// all the common/ dependencies
civihrPath + 'org.civicrm.reqangular/dist/reqangular.min.js',
civihrPath + 'org.civicrm.reqangular/js/dist/reqangular.min.js',

// the application modules
{ pattern: extPath + 'js/src/job-roles/**/*.js', included: false },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
define([
'common/angular',
'common/angularMocks',
'job-roles/filters/get-active-values.filter'
'job-roles/modules/job-roles.filters'
], function (angular, moment) {
'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

{section name=rows loop=$rowDisplayCount}
{assign var="j" value=$smarty.section.rows.index}
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]}</td>
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]|escape}</td>
{/section}

{* Display mapper <select> field for 'Map Fields', and mapper value for 'Preview' *}
Expand Down
4 changes: 2 additions & 2 deletions contactaccessrights/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>Compucorp Ltd</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions contactaccessrights/js/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ module.exports = function (config) {
civihrPath + 'uk.co.compucorp.civicrm.hrcore/node_modules/karma-requirejs/lib/adapter.js',

// all the common/ dependencies
civihrPath + 'org.civicrm.reqangular/dist/reqangular.min.js',
civihrPath + 'org.civicrm.reqangular/js/dist/reqangular.min.js',

// all the common/ mocked dependencies
civihrPath + 'org.civicrm.reqangular/dist/reqangular.mocks.min.js',
civihrPath + 'org.civicrm.reqangular/js/dist/reqangular.mocks.min.js',

// the application modules
{
Expand Down
4 changes: 2 additions & 2 deletions contactsummary/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>Compucorp Ltd</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
2 changes: 1 addition & 1 deletion contactsummary/js/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function (config) {
civihrPath + 'uk.co.compucorp.civicrm.hrcore/node_modules/karma-requirejs/lib/adapter.js',

// all the common/ dependencies
civihrPath + 'org.civicrm.reqangular/dist/reqangular.min.js',
civihrPath + 'org.civicrm.reqangular/js/dist/reqangular.min.js',

// External extensions files
{ pattern: civihrPath + 'uk.co.compucorp.civicrm.hrleaveandabsences/js/src/**/!(*.spec).js', included: false },
Expand Down
4 changes: 2 additions & 2 deletions hrbank/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
3 changes: 0 additions & 3 deletions hrcareer/css/hrcareer.css

This file was deleted.

3 changes: 0 additions & 3 deletions hrcareer/hrcareer.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,5 @@ function hrcareer_civicrm_pageRun($page) {

CRM_Core_Resources::singleton()
->addScriptFile('org.civicrm.hrcareer', 'js/hrcareer.js');

CRM_Core_Resources::singleton()
->addStyleFile('org.civicrm.hrcareer', 'css/hrcareer.css');
}
}
4 changes: 2 additions & 2 deletions hrcareer/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions hrcase/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions hrdemog/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
3 changes: 0 additions & 3 deletions hrident/css/hrident.css

This file was deleted.

13 changes: 0 additions & 13 deletions hrident/hrident.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,6 @@ function hrident_civicrm_managed(&$entities) {
return _hrident_civix_civicrm_managed($entities);
}

/**
* Implementation of hook_civicrm_tabset.
*
* @param string $tabsetName
* @param array &$tabs
* @param array $context
*/
function hrident_civicrm_tabset($tabsetName, &$tabs, $context) {
if ($tabsetName === 'civicrm/contact/view') {
CRM_Core_Resources::singleton()->addStyleFile('org.civicrm.hrident', 'css/hrident.css');
}
}

function hrident_getCustomGroupId() {
$groups = CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', 'custom_group_id', array('labelColumn' => 'name'));
return array_search('Identify', $groups);
Expand Down
4 changes: 2 additions & 2 deletions hrim/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions hrjobcontract/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>Compucorp Ltd</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions hrjobcontract/js/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ module.exports = function (config) {
civihrPath + 'uk.co.compucorp.civicrm.hrcore/node_modules/karma-requirejs/lib/adapter.js',

// all the common/ dependencies
civihrPath + 'org.civicrm.reqangular/dist/reqangular.min.js',
civihrPath + 'org.civicrm.reqangular/js/dist/reqangular.min.js',

// all the common/ mocked dependencies
civihrPath + 'org.civicrm.reqangular/dist/reqangular.mocks.min.js',
civihrPath + 'org.civicrm.reqangular/js/dist/reqangular.mocks.min.js',

// External extensions files
{ pattern: civihrPath + 'uk.co.compucorp.civicrm.hrleaveandabsences/js/src/**/!(*.spec).js', included: false },
Expand Down
36 changes: 18 additions & 18 deletions hrjobcontract/templates/CRM/Hrjobcontract/Form/Merge.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<li>Contract ID : {$contract_id} => conflicting with the following Main contact contracts :</li>
{foreach from=$conflicts item=contract}
<ol>
<li> Title => <b>{$contract.title}</b> , ID => <b>{$contract.contract_id}</b></li>
<li> Title => <b>{$contract.title|escape}</b> , ID => <b>{$contract.contract_id}</b></li>
</ol>
{/foreach}
{/foreach}
Expand All @@ -67,16 +67,16 @@
</div>

<div class="action-link">
{if $prev}<a href="{$prev}" class="crm-hover-button action-item"><i class="crm-i fa-chevron-left"></i> {ts}Previous{/ts}</a>{/if}
{if $next}<a href="{$next}" class="crm-hover-button action-item">{ts}Next{/ts} <i class="crm-i fa-chevron-right"></i></a>{/if}
<a href="{$flip}" class="action-item crm-hover-button">
{if $prev}<a href="{$prev|escape}" class="crm-hover-button action-item"><i class="crm-i fa-chevron-left"></i> {ts}Previous{/ts}</a>{/if}
{if $next}<a href="{$next|escape}" class="crm-hover-button action-item">{ts}Next{/ts} <i class="crm-i fa-chevron-right"></i></a>{/if}
<a href="{$flip|escape}" class="action-item crm-hover-button">
<i class="crm-i fa-random"></i>
{ts}Flip between original and duplicate contacts.{/ts}
</a>
</div>

<div class="action-link">
<a href="#" class="action-item crm-hover-button crm-notDuplicate" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid}, {$other_cid}, 'dupe-nondupe', 'merge-contact', '{$browseUrl}' );return false;">
<a href="#" class="action-item crm-hover-button crm-notDuplicate" title={ts}Mark this pair as not a duplicate.{/ts} onClick="processDupes( {$main_cid|escape}, {$other_cid|escape}, 'dupe-nondupe', 'merge-contact', '{$browseUrl}' );return false;">
<i class="crm-i fa-times-circle"></i>
{ts}Mark this pair as not a duplicate.{/ts}
</a>
Expand All @@ -92,9 +92,9 @@
<table class="row-highlight">
<tr class="columnheader">
<th>&nbsp;</th>
<th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name}</a> ({ts}duplicate{/ts})</th>
<th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$other_cid"}">{$other_name|escape}</a> ({ts}duplicate{/ts})</th>
<th>{ts}Mark All{/ts}<br />=={$form.toggleSelect.html} ==&gt;</th>
<th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name}</a></th>
<th><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=$main_cid"}">{$main_name|escape}</a></th>
<th width="300">Add/overwrite?</th>
</tr>

Expand All @@ -115,7 +115,7 @@
{if !isset($row.main) && !isset($row.other)}
<tr style="background-color: #fff !important; border-bottom:1px solid #ccc !important;" class="no-data">
<td>
<strong>{$row.title}</strong>
<strong>{$row.title|escape}</strong>
</td>
{else}
{if $row.main eq $row.other}
Expand All @@ -124,7 +124,7 @@
<tr class="crm-row-error {cycle values="odd-row,even-row"}">
{/if}
<td>
{$row.title}
{$row.title|escape}
</td>
{/if}

Expand All @@ -141,9 +141,9 @@
<span>
{/if}
{if !is_array($row.other)}
{$row.other}
{$row.other|escape}
{elseif $row.other.fileName}
{$row.other.fileName}
{$row.other.fileName|escape}
{else}
{', '|implode:$row.other}
{/if}
Expand All @@ -165,15 +165,15 @@
{strip}
{if $row.title|substr:0:5 == "Email" OR
$row.title|substr:0:7 == "Address"}
<span style="white-space: pre" id="main_{$blockName}_{$blockId}">
<span style="white-space: pre" id="main_{$blockName|escape}_{$blockId|escape}">
{else}
<span id="main_{$blockName}_{$blockId}">
<span id="main_{$blockName|escape}_{$blockId|escape}">
{/if}
{* @TODO check if this is ever an array or a fileName? *}
{if !is_array($row.main)}
{$row.main}
{$row.main|escape}
{elseif $row.main.fileName}
{$row.main.fileName}
{$row.main.fileName|escape}
{else}
{', '|implode:$row.main}
{/if}
Expand Down Expand Up @@ -224,9 +224,9 @@
<td>
<span>
{if !is_array($row.main)}
{$row.main}
{$row.main|escape}
{elseif $row.main.fileName}
{$row.main.fileName}
{$row.main.fileName|escape}
{else}
{', '|implode:$row.main}
{/if}
Expand Down Expand Up @@ -331,7 +331,7 @@
}
// Update operation description
var operation_description = "{/literal}{ts}add{/ts}{literal}";
var operation_description = "{/literal}{ts escape='js'}add{/ts}{literal}";
var add_new_check_length = this_controls.find(".location_operation_checkbox input:checked").length;
if (mainBlock != false) {
if (add_new_check_length > 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<tr style="border-bottom: 1px solid #92B6EC;">
{section name=rows loop=$rowDisplayCount}
{assign var="j" value=$smarty.section.rows.index}
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]}</td>
<td class="{if $skipColumnHeader AND $smarty.section.rows.iteration == 1}even-row labels{else}odd-row{/if}">{$dataValues[$j][$i]|escape}</td>
{/section}

{* Display mapper <select> field for 'Map Fields', and mapper value for 'Preview' *}
Expand Down
3 changes: 0 additions & 3 deletions hrmed/css/hrmed.css

This file was deleted.

2 changes: 0 additions & 2 deletions hrmed/hrmed.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,5 @@ function hrmed_civicrm_pageRun($page) {
->addScriptFile('civicrm', 'js/jquery/jquery.crmRevisionLink.js', CRM_Core_Resources::DEFAULT_WEIGHT, 'html-header');
CRM_Core_Resources::singleton()
->addScriptFile('org.civicrm.hrmed', 'js/hrmed.js');
CRM_Core_Resources::singleton()
->addStyleFile('org.civicrm.hrmed', 'css/hrmed.css');
}
}
4 changes: 2 additions & 2 deletions hrmed/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions hrprofile/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
3 changes: 0 additions & 3 deletions hrqual/css/hrqual.css

This file was deleted.

1 change: 0 additions & 1 deletion hrqual/hrqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ function hrqual_civicrm_managed(&$entities) {
*/
function hrqual_civicrm_tabset($tabsetName, &$tabs, $context) {
if ($tabsetName === 'civicrm/contact/view') {
CRM_Core_Resources::singleton()->addStyleFile('org.civicrm.hrqual', 'css/hrqual.css');
CRM_Core_Resources::singleton()->addScriptFile('org.civicrm.hrqual', 'js/hrqual.js');

$optionGroups = CRM_Core_OptionGroup::values('category_of_skill_20130510015438');
Expand Down
4 changes: 2 additions & 2 deletions hrqual/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
4 changes: 2 additions & 2 deletions hrrecruitment/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<author>CiviCRM LLC</author>
<email>[email protected]</email>
</maintainer>
<releaseDate>2018-07-17</releaseDate>
<version>1.7.8</version>
<releaseDate>2018-07-24</releaseDate>
<version>1.7.9</version>
<develStage>stable</develStage>
<compatibility>
<ver>4.7</ver>
Expand Down
Loading

0 comments on commit 15943b5

Please sign in to comment.