From 6fc913bc41d90fa75da443bd2fe1d19ec75a8bba Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Wed, 24 Jun 2026 14:58:40 +0200 Subject: [PATCH] eurooffice should only get enabled on new instances Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: Simon L. --- php/src/Data/ConfigurationManager.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index aa757dd5..bb33515b 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -102,7 +102,8 @@ class ConfigurationManager } public bool $isEuroofficeEnabled { - get => $this->get('isEuroofficeEnabled', true); + // Only enabled if no other office suite is enabled. + get => !$this->isOtherOfficeThanEuroOfficeEnabled() && $this->get('isEuroofficeEnabled', true); set { $this->set('isEuroofficeEnabled', $value); } } @@ -531,6 +532,12 @@ class ConfigurationManager return ''; } + // Helper function for EuroOffice to make sure that it does not + // get enabled on existing instances after updating the default + private function isOtherOfficeThanEuroOfficeEnabled() : bool { + return $this->isCollaboraEnabled || $this->isOnlyofficeEnabled; + } + private function isx64Platform() : bool { if (php_uname('m') === 'x86_64') { return true;