- in the IDE:
- add the following code in the \ConfigurationEventHandler::OnBeforeItemValidate method (file: core/units/configuration/configuration_event_handler.php) after an $object variable was initialized:
if ( $object->GetDBField('VariableName') === 'SoftMaintenanceTemplate' ) { $object->SetError('VariableValue', 'required'); }
- in the Admin Console:
- go to the Configuration → Website → Advanced section
- press the Save toolbar button
- confirm, that the page automatically scrolls to the Template for Soft Maintenance system setting
- confirm, that error is displayed after the Template for Soft Maintenance system setting