From 46b073d7ce49d9797caf29522358562179846abd Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 3 Dec 2020 11:12:41 +0100 Subject: Add a config for default region of phone numbers Signed-off-by: Joas Schilling --- core/js/setupchecks.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/js/setupchecks.js') diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 214f148fa94..22c8589f73b 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -216,6 +216,12 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }); } + if (!data.isDefaultPhoneRegionSet) { + messages.push({ + msg: t('core', 'Your installation has no default phone region set. This is required to be able to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add "default_phone_region" with the respective ISO 3166-1 code of the wished region.'), + type: OC.SetupChecks.MESSAGE_TYPE_INFO + }); + } if (data.cronErrors.length > 0) { var listOfCronErrors = ""; data.cronErrors.forEach(function(element){ -- cgit v1.2.3