Version 4.3.0

This commit is contained in:
Neo committed 2025-12-19 05:47:12 -08:00
1 parent 96997ddd8e
commit fe1acf984a
1349 files changed
+116159 -67711

No files matched your search

@@ -42,9 +42,17 @@ class _contactus extends \IPS\Dispatcher\Controller
{
$form = $this->_getConfigForm();
if ( $values = $form->values() )
if ( $values = $form->values( true ) )
{
$form->saveAsSettings();
/* If we unselect 'everyone' and save, an empty string is passed through, so the default value is picked up in Settings::changeValues(),
which is the 'everyone' preference...the end result is that everyone gets rechecked when you uncheck it. To counter that, we'll store an invalid
value here. */
if( $values['contact_access'] === '' )
{
$values['contact_access'] = '-1';
}
$form->saveAsSettings( $values );
/* Clear guest page caches */
\IPS\Data\Cache::i()->clearAll();