Revert "Also activate main mode if not already enabled upon submode acitvation"

This reverts commit 6580021ab2.
This commit is contained in:
phl0
2025-06-25 11:49:53 +02:00
parent fd0a5acb1f
commit 3a246b3d21

View File

@@ -62,10 +62,6 @@ class Usermodes extends CI_Model {
foreach ($raw_modes as $row) {
if (($row->id == $clean_id) || ($row->active == 1)) {
$modes[]=$row->mode.'~'.($row->submode ?? '');
// Also activate main mode if not active to keep mode/submode ordering in dropdown menu
if (array_search($row->mode.'~', $modes) === false) {
$modes[] = $row->mode.'~';
}
}
}
$this->user_options_model->set_option('usermodes', 'enabled_usermodes', array('json_modes' => json_encode($modes)));