Version 4.6.0

This commit is contained in:
Neo committed 2025-12-19 05:55:31 -08:00
1 parent f79dcf067a
commit 517a5e1f70
2036 files changed
+110041 -26162

No files matched your search

@@ -286,7 +286,7 @@ class _themesettings extends \IPS\Dispatcher\Controller
$form = new \IPS\Helpers\Form();
$form->hiddenValues['set_id'] = $setId;
$form->add( new \IPS\Helpers\Form\Text( 'theme_custom_setting_title', $current['sc_title'], TRUE ) );
$form->add( new \IPS\Helpers\Form\Text( 'theme_custom_setting_title', $id ? $current['sc_title'] : null, TRUE ) );
$form->add( new \IPS\Helpers\Form\Select( 'theme_custom_setting_app', $id ? $current['sc_app'] : null, TRUE, array( 'options' => $apps ) ) );
@@ -469,7 +469,7 @@ class _themesettings extends \IPS\Dispatcher\Controller
}
/* Default is changed, change value? */
if ( $save['sc_default'] !== $current['sc_default'] )
if ( $current and ( $save['sc_default'] !== $current['sc_default'] ) )
{
try
{
@@ -501,6 +501,9 @@ class _themesettings extends \IPS\Dispatcher\Controller
$set->template_settings = json_encode( $themeSettings );
$set->save();
}
/* Update children */
$set->updateChildrenThemeSettings();
\IPS\Output::i()->redirect( \IPS\Http\Url::internal( 'app=core&module=customization&controller=themesettings&set_id=' . $setId ), 'saved' );
}