diff --git a/administrator/components/com_config/Controller/ApplicationController.php b/administrator/components/com_config/Controller/ApplicationController.php index 193fe8ef760ef..b41afa4041c3a 100644 --- a/administrator/components/com_config/Controller/ApplicationController.php +++ b/administrator/components/com_config/Controller/ApplicationController.php @@ -119,7 +119,8 @@ public function save() */ // Redirect back to the edit screen. - $this->setRedirect(Route::_('index.php?option=com_config', false)); + $this->app->enqueueMessage(Text::_('COM_CONFIG_ERROR_VALIDATION'), 'error'); + $this->app->redirect(Route::_('index.php?option=com_config', false)); } // Attempt to save the configuration. diff --git a/administrator/language/en-GB/en-GB.com_config.ini b/administrator/language/en-GB/en-GB.com_config.ini index 3f063f4e4c14e..350f815063bd9 100644 --- a/administrator/language/en-GB/en-GB.com_config.ini +++ b/administrator/language/en-GB/en-GB.com_config.ini @@ -26,6 +26,7 @@ COM_CONFIG_ERROR_ROOT_ASSET_NOT_FOUND="The asset for global configuration could COM_CONFIG_ERROR_SSL_NOT_AVAILABLE="HTTPS has not been enabled as it is not available on this server. HTTPS connection test failed with the following error: %s" COM_CONFIG_ERROR_SSL_NOT_AVAILABLE_HTTP_CODE="HTTPS version of the site returned an invalid HTTP status code." COM_CONFIG_ERROR_REMOVING_SUPER_ADMIN="You can't remove your own Super User permissions." +COM_CONFIG_ERROR_VALIDATION="Form validation failed. Please check the form." COM_CONFIG_ERROR_WRITE_FAILED="Could not write to the configuration file" COM_CONFIG_FIELD_CACHE_HANDLER_LABEL="Cache Handler" COM_CONFIG_FIELD_CACHE_PLATFORMPREFIX_LABEL="Platform Specific Caching"