'prefix_id',
'suffix_id',
)) &&
- ($value == '' || !isset($value)) &&
- ($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0 ||
- ($key == 'current_employer' && empty($params['current_employer']))) {
- // CRM-10128: if auth source is not checksum / login && $value is blank, do not fill $data with empty value
- // to avoid update with empty values
- continue;
+ ($value == '' || !isset($value)) &&
+ ($session->get('authSrc') & (CRM_Core_Permission::AUTH_SRC_CHECKSUM + CRM_Core_Permission::AUTH_SRC_LOGIN)) == 0 ||
+ ($key == 'current_employer' && empty($params['current_employer']))) {
+ // CRM-10128: if auth source is not checksum / login && $value is blank, do not fill $data with empty value
+ // to avoid update with empty values
+ continue;
}
else {
$data[$key] = $value;
}
elseif ($accessCiviCRM && !empty($this->_viewOptions[$tab['id']])) {
$allTabs[] = $tab + [
- 'url' => CRM_Utils_System::url(
- "civicrm/contact/view/{$tab['id']}",
- "reset=1&cid={$this->_contactId}"
- ),
+ 'url' => CRM_Utils_System::url("civicrm/contact/view/{$tab['id']}", "reset=1&cid={$this->_contactId}"),
'count' => CRM_Contact_BAO_Contact::getCountComponent($tab['id'], $this->_contactId),
];
$weight = $tab['weight'] + 10;
-<?php\r
-\r
-/**\r
- * Class CRM_Contribute_Exception_CheckLineItemsException\r
- */\r
-class CRM_Contribute_Exception_CheckLineItemsException extends API_Exception {\r
- const LINE_ITEM_DIFFERRING_TOTAL_EXCEPTON_MSG = "Line item total doesn't match with total amount.";\r
-\r
- public function __construct($message = self::LINE_ITEM_DIFFERRING_TOTAL_EXCEPTON_MSG, $error_code = 0, array $extraParams = [], $previous = NULL) {\r
- parent::__construct($message, $error_code, $extraParams, $previous);\r
- }\r
-\r
-}\r
+<?php
+
+/**
+ * Class CRM_Contribute_Exception_CheckLineItemsException
+ */
+class CRM_Contribute_Exception_CheckLineItemsException extends API_Exception {
+ const LINE_ITEM_DIFFERRING_TOTAL_EXCEPTON_MSG = "Line item total doesn't match with total amount.";
+
+ public function __construct($message = self::LINE_ITEM_DIFFERRING_TOTAL_EXCEPTON_MSG, $error_code = 0, array $extraParams = [], $previous = NULL) {
+ parent::__construct($message, $error_code, $extraParams, $previous);
+ }
+
+}
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* A table-indexed array of translatable columns.
*/
public static function &columns() {
- static $result = null;
+ static $result = NULL;
if (!$result) {
$result = [
'civicrm_location_type' => [
* Indices for translatable fields.
*/
public static function &indices() {
- static $result = null;
+ static $result = NULL;
if (!$result) {
$result = [
'civicrm_custom_group' => [
* Array of names of tables with fields that can be translated.
*/
static function &tables() {
- static $result = null;
+ static $result = NULL;
if (!$result) {
$result = array_keys(self::columns());
}
* Array of the widgets for editing translatable fields.
*/
static function &widgets() {
- static $result = null;
+ static $result = NULL;
if (!$result) {
$result = [
'civicrm_location_type' => [
"return" => "id",
]
)
- ));
+ )
+ );
if (!empty($membershipIDs)) {
civicrm_api3("Membership", "get", [