projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15338 from totten/master-poc-postcommit
[civicrm-core.git]
/
CRM
/
Contact
/
Task.php
diff --git
a/CRM/Contact/Task.php
b/CRM/Contact/Task.php
index d351f25758ac765942446a05d946a2349b4a0fe0..e4cac5e8627ed75e5e61706027d7fab33e2c4814 100644
(file)
--- a/
CRM/Contact/Task.php
+++ b/
CRM/Contact/Task.php
@@
-160,7
+160,7
@@
class CRM_Contact_Task extends CRM_Core_Task {
}
if (CRM_Contact_BAO_ContactType::isActive('Individual')) {
}
if (CRM_Contact_BAO_ContactType::isActive('Individual')) {
- $label = CRM_Contact_BAO_ContactType::getLabel('
i
ndividual');
+ $label = CRM_Contact_BAO_ContactType::getLabel('
I
ndividual');
self::$_tasks[self::INDIVIDUAL_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
self::$_tasks[self::INDIVIDUAL_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
@@
-170,7
+170,7
@@
class CRM_Contact_Task extends CRM_Core_Task {
}
if (CRM_Contact_BAO_ContactType::isActive('Household')) {
}
if (CRM_Contact_BAO_ContactType::isActive('Household')) {
- $label = CRM_Contact_BAO_ContactType::getLabel('
h
ousehold');
+ $label = CRM_Contact_BAO_ContactType::getLabel('
H
ousehold');
self::$_tasks[self::HOUSEHOLD_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
self::$_tasks[self::HOUSEHOLD_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
@@
-180,7
+180,7
@@
class CRM_Contact_Task extends CRM_Core_Task {
}
if (CRM_Contact_BAO_ContactType::isActive('Organization')) {
}
if (CRM_Contact_BAO_ContactType::isActive('Organization')) {
- $label = CRM_Contact_BAO_ContactType::getLabel('
o
rganization');
+ $label = CRM_Contact_BAO_ContactType::getLabel('
O
rganization');
self::$_tasks[self::ORGANIZATION_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
self::$_tasks[self::ORGANIZATION_CONTACTS] = array(
'title' => ts('Add relationship - to %1',
array(1 => $label)
@@
-239,7
+239,7
@@
class CRM_Contact_Task extends CRM_Core_Task {
if (CRM_Core_Permission::access('CiviCase')) {
self::$_tasks[self::ADD_TO_CASE] = array(
if (CRM_Core_Permission::access('CiviCase')) {
self::$_tasks[self::ADD_TO_CASE] = array(
- 'title' =>
'Add to case as role'
,
+ 'title' =>
ts('Add to case as role')
,
'class' => 'CRM_Case_Form_AddToCaseAsRole',
'result' => FALSE,
);
'class' => 'CRM_Case_Form_AddToCaseAsRole',
'result' => FALSE,
);
@@
-311,7
+311,7
@@
class CRM_Contact_Task extends CRM_Core_Task {
public static function getTask($value) {
self::tasks();
public static function getTask($value) {
self::tasks();
- if (
!CRM_Utils_Array::value($value, self::$_tasks
)) {
+ if (
empty(self::$_tasks[$value]
)) {
// make it the print task by default
$value = self::TASK_PRINT;
}
// make it the print task by default
$value = self::TASK_PRINT;
}