diff --git a/application/Espo/Core/Utils/File/Permission.php b/application/Espo/Core/Utils/File/Permission.php index 679c9e0e06..e6eddf68a4 100644 --- a/application/Espo/Core/Utils/File/Permission.php +++ b/application/Espo/Core/Utils/File/Permission.php @@ -390,7 +390,7 @@ class Permission protected function chmodReal($filename, $mode) { try { - $result = chmod($filename, $mode); + $result = @chmod($filename, $mode); } catch (\Exception $e) { $result = false; } @@ -400,7 +400,7 @@ class Permission $this->chgrp($filename, $this->getDefaultGroup(true)); try { - $result = chmod($filename, $mode); + $result = @chmod($filename, $mode); } catch (\Exception $e) { throw new Error($e->getMessage()); } @@ -412,7 +412,7 @@ class Permission protected function chownReal($path, $user) { try { - $result = chown($path, $user); + $result = @chown($path, $user); } catch (\Exception $e) { throw new Error($e->getMessage()); } @@ -423,7 +423,7 @@ class Permission protected function chgrpReal($path, $group) { try { - $result = chgrp($path, $group); + $result = @chgrp($path, $group); } catch (\Exception $e) { throw new Error($e->getMessage()); } diff --git a/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Contact.json b/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Contact.json index 0c1476706d..a980cd347d 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Contact.json +++ b/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Contact.json @@ -645,8 +645,7 @@ "campaign": { "type": "belongsTo", "entity": "Campaign", - "foreign": "contacts", - "noJoin": true + "foreign": "contacts" }, "campaignLogRecords": { "type": "hasChildren", diff --git a/application/Espo/Resources/defaults/config.php b/application/Espo/Resources/defaults/config.php index 76a4eaedf1..7b5783a4e3 100644 --- a/application/Espo/Resources/defaults/config.php +++ b/application/Espo/Resources/defaults/config.php @@ -44,7 +44,7 @@ return [ 'version' => '@@version', 'timeZone' => 'UTC', 'dateFormat' => 'DD.MM.YYYY', - 'timeFormat' => 'hh:mm', + 'timeFormat' => 'HH:mm', 'weekStart' => 0, 'thousandSeparator' => ',', 'decimalMark' => '.', diff --git a/client/src/views/notification/badge.js b/client/src/views/notification/badge.js index f0972bf9ca..2cffe3f72d 100644 --- a/client/src/views/notification/badge.js +++ b/client/src/views/notification/badge.js @@ -152,7 +152,11 @@ define('views/notification/badge', 'view', function (Dep) { checkBypass: function () { var last = this.getRouter().getLast() || {}; - if (last.controller == 'Admin' && last.action == 'upgrade') { + if ( + last.controller == 'Admin' + && + ~['upgrade', 'extensions'].indexOf(last.action) + ) { return true; } }, diff --git a/upgrades/6.1.5-6.1.6/data.json b/upgrades/6.1.5-6.1.6/data.json new file mode 100644 index 0000000000..bdca4f6cfd --- /dev/null +++ b/upgrades/6.1.5-6.1.6/data.json @@ -0,0 +1,4 @@ +{ + "manifest": { + } +} \ No newline at end of file diff --git a/upgrades/6.1.5-6.1.6/scripts/AfterUpgrade.php b/upgrades/6.1.5-6.1.6/scripts/AfterUpgrade.php new file mode 100644 index 0000000000..f380ed73b6 --- /dev/null +++ b/upgrades/6.1.5-6.1.6/scripts/AfterUpgrade.php @@ -0,0 +1,52 @@ +container = $container; + + $this->fixTimeFormat(); + } + + protected function fixTimeFormat() + { + $config = $this->container->get('config'); + + $actualTimeFormat = $config->get('timeFormat'); + + if ($actualTimeFormat === 'hh:mm') { + $config->set('timeFormat', 'HH:mm'); + $config->save(); + } + } +} diff --git a/upgrades/6.1/scripts/AfterUpgrade.php b/upgrades/6.1/scripts/AfterUpgrade.php index 1696d5cb8a..79660d39a4 100644 --- a/upgrades/6.1/scripts/AfterUpgrade.php +++ b/upgrades/6.1/scripts/AfterUpgrade.php @@ -35,17 +35,28 @@ class AfterUpgrade { $this->container = $container; - $config = $container->get('config'); - - $config->set('pdfEngine', 'Tcpdf'); - - $config->save(); + $this->updateConfig(); $this->removeUnnecessaryFiles(); $this->removeUnnecessaryDirectories(); } - public function removeUnnecessaryFiles() + protected function updateConfig() + { + $config = $this->container->get('config'); + + $actualTimeFormat = $config->get('timeFormat'); + + if ($actualTimeFormat === 'hh:mm') { + $config->set('timeFormat', 'HH:mm'); + } + + $config->set('pdfEngine', 'Tcpdf'); + + $config->save(); + } + + protected function removeUnnecessaryFiles() { $fileList = [ 'vendor/spatie/async/.git/objects/pack/pack-14ab89d3ff365322e20cfd44252880928aaa4ed6.idx', @@ -72,7 +83,7 @@ class AfterUpgrade } } - public function removeUnnecessaryDirectories() + protected function removeUnnecessaryDirectories() { $directoryList = [ 'vendor/spatie/async/.git',