diff --git a/application/Espo/Classes/TemplateHelpers/GoogleMaps.php b/application/Espo/Classes/TemplateHelpers/GoogleMaps.php index b2aa1f6abe..7bf8c63a1b 100644 --- a/application/Espo/Classes/TemplateHelpers/GoogleMaps.php +++ b/application/Espo/Classes/TemplateHelpers/GoogleMaps.php @@ -165,7 +165,7 @@ class GoogleMaps implements Helper $url = "https://maps.googleapis.com/maps/api/staticmap?" . 'center=' . $addressEncoded . - 'format=' . $format . + '&format=' . $format . '&size=' . $size . '&key=' . $apiKey; diff --git a/application/Espo/Modules/Crm/Business/Reminder/EmailReminder.php b/application/Espo/Modules/Crm/Business/Reminder/EmailReminder.php index da04a48ff8..904a802b9b 100644 --- a/application/Espo/Modules/Crm/Business/Reminder/EmailReminder.php +++ b/application/Espo/Modules/Crm/Business/Reminder/EmailReminder.php @@ -106,7 +106,10 @@ class EmailReminder return; } - if ($entity->hasLinkMultipleField('users')) { + if ( + $entity->hasLinkMultipleField('users') && + $entity->hasAttribute('usersColumns') + ) { $entity->loadLinkMultipleField('users', ['status' => 'acceptanceStatus']); $status = $entity->getLinkMultipleColumn('users', 'status', $user->getId()); diff --git a/application/Espo/Modules/Crm/Jobs/SubmitPopupReminders.php b/application/Espo/Modules/Crm/Jobs/SubmitPopupReminders.php index c78812e857..49beda5e8f 100644 --- a/application/Espo/Modules/Crm/Jobs/SubmitPopupReminders.php +++ b/application/Espo/Modules/Crm/Jobs/SubmitPopupReminders.php @@ -106,7 +106,8 @@ class SubmitPopupReminders implements JobDataLess if ( $entity instanceof CoreEntity && - $entity->hasLinkMultipleField('users') + $entity->hasLinkMultipleField('users') && + $entity->hasAttribute('usersColumns') ) { $entity->loadLinkMultipleField('users', ['status' => 'acceptanceStatus']); diff --git a/application/Espo/Modules/Crm/Tools/Activities/PopupNotificationsProvider.php b/application/Espo/Modules/Crm/Tools/Activities/PopupNotificationsProvider.php index d1bd1a2941..e63a3c8859 100644 --- a/application/Espo/Modules/Crm/Tools/Activities/PopupNotificationsProvider.php +++ b/application/Espo/Modules/Crm/Tools/Activities/PopupNotificationsProvider.php @@ -113,7 +113,8 @@ class PopupNotificationsProvider implements Provider if ( $entity instanceof CoreEntity && - $entity->hasLinkMultipleField('users') + $entity->hasLinkMultipleField('users') && + $entity->hasAttribute('usersColumns') ) { $entity->loadLinkMultipleField('users', ['status' => 'acceptanceStatus']); diff --git a/application/Espo/Tools/LinkManager/LinkManager.php b/application/Espo/Tools/LinkManager/LinkManager.php index d185079634..8d8581bf48 100644 --- a/application/Espo/Tools/LinkManager/LinkManager.php +++ b/application/Espo/Tools/LinkManager/LinkManager.php @@ -126,7 +126,9 @@ class LinkManager $params['relationName'] : lcfirst($entity) . $entityForeign; - $relationName = $this->nameUtil->addCustomPrefix($relationName); + if ($relationName[0] !== 'c' || !preg_match('/[A-Z]/', $relationName[1])) { + $relationName = $this->nameUtil->addCustomPrefix($relationName); + } if ($this->isNameTooLong($relationName)) { throw new Error("Relation name is too long."); diff --git a/client/css/misc/layout-manager-grid.css b/client/css/misc/layout-manager-grid.css index cdc9ef69a3..15c54f2bf2 100644 --- a/client/css/misc/layout-manager-grid.css +++ b/client/css/misc/layout-manager-grid.css @@ -11,7 +11,7 @@ #layout ul.panels > li { padding: 5px 10px; - margin-bottom: 20px; + margin-bottom: 14px; min-height: 80px; border: 1px solid var(--select-item-border); border-radius: var(--border-radius); diff --git a/client/res/templates/admin/layouts/grid-panel.tpl b/client/res/templates/admin/layouts/grid-panel.tpl index e15016a826..6cc27743b4 100644 --- a/client/res/templates/admin/layouts/grid-panel.tpl +++ b/client/res/templates/admin/layouts/grid-panel.tpl @@ -45,7 +45,9 @@ {{#if hasCustomLabel}} data-custom-label="{{customLabel}}" {{/if}} - data-no-label="{{noLabel}}" > + data-no-label="{{noLabel}}" + title="{{label}}" + >