Skip to content

Commit

Permalink
Merge pull request #1698 from civicrm/staging
Browse files Browse the repository at this point in the history
Sync master with staging
  • Loading branch information
davialexandre authored Apr 7, 2017
2 parents a1fcd48 + 9ec539f commit 349570a
Show file tree
Hide file tree
Showing 436 changed files with 6,882 additions and 60,667 deletions.
7 changes: 4 additions & 3 deletions bin/drush-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ org.civicrm.hrim,\
org.civicrm.hrrecruitment,\
org.civicrm.reqangular,\
org.civicrm.contactsummary,\
org.civicrm.bootstrapcivicrm,\
org.civicrm.bootstrapcivihr
org.civicrm.shoreditch,\
org.civicrm.bootstrapcivihr,\
org.civicrm.styleguide

##
# Set Default localisation settings
Expand Down Expand Up @@ -62,7 +63,7 @@ function set_default_localisation_settings() {
function set_resource_urls() {
# Set Custom CSS URL
drush cvapi Setting.create \
customCSSURL="[civicrm.root]/tools/extensions/civihr/org.civicrm.bootstrapcivicrm/css/custom-civicrm.css"
customCSSURL="[civicrm.root]/tools/extensions/org.civicrm.shoreditch/css/custom-civicrm.css"
}

##################################
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function buildQuickForm() {

$js .= "{$formName}['mapper[$i][3]'].style.display = 'none';\n";
$defaults["mapper[$i]"] = array(
$mappingHeader[0],
isset($mappingHeader[0]) ? $mappingHeader[0] : "",
(isset($locationId)) ? $locationId : "",
(isset($phoneType)) ? $phoneType : "",
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,9 @@ function summary(&$values) {
unset($params['hrjc_role_percent_pay_funder']);
}

// check if job role start and end dates if exist matches or within contract start and end dates

$contractStartDate = CRM_Utils_Date::formatDate($contractDetails->period_start_date, $dateType);
$contractEndDate = CRM_Utils_Date::formatDate($contractDetails->period_end_date, $dateType);
// use contract dates as fallback if job role dates not set
$contractStartDate = CRM_Utils_Date::formatDate($contractDetails->period_start_date, 1);
$contractEndDate = CRM_Utils_Date::formatDate($contractDetails->period_end_date, 1);

if (!empty($params['hrjc_role_start_date'])) {
$roleStartDate = CRM_Utils_Date::formatDate($params['hrjc_role_start_date'], $dateType);
Expand Down
Loading

0 comments on commit 349570a

Please sign in to comment.