Skip to content

Commit

Permalink
QTS: fix for checkbox not enabling module on first save (#1107)
Browse files Browse the repository at this point in the history
  • Loading branch information
spleen1981 authored Feb 19, 2022
1 parent bddcce1 commit 0a9ed2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions admin/qtx_admin_options_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ function qtranxf_save_config() {
qtranxf_update_option( $nm, $def );
}

QTX_Modules_Handler::update_manual_enabled_modules();

do_action( 'qtranslate_save_config' );
do_action_deprecated( 'qtranslate_saveConfig', array(), '3.10.0', 'qtranslate_save_config' );
}
Expand Down
2 changes: 0 additions & 2 deletions modules/qtx_modules_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public static function load_modules_enabled() {
return null;
}

self::update_manual_enabled_modules();

foreach ( $def_modules as $def_module ) {
if ( ! array_key_exists( $def_module['id'], $options_modules ) ) {
continue;
Expand Down

0 comments on commit 0a9ed2f

Please sign in to comment.