N°2847 - Navigation menu: Change default expanded/collapsed behavior

- Keep previous value (iTop 2.7 and older) if present
- Otherwise, collapsed by default
- Also renamed the user pref. to match new conventions
This commit is contained in:
Molkobain
2021-02-03 17:08:18 +01:00
parent a91b6dbca3
commit 4a2cbc9be3
3 changed files with 14 additions and 7 deletions

View File

@@ -824,7 +824,7 @@ try
break;
case 'set_pref':
$sCode = utils::ReadPostedParam('code', '');
$sCode = utils::ReadPostedParam('code', '', 'raw_data');
$sValue = utils::ReadPostedParam('value', '', 'raw_data');
appUserPreferences::SetPref($sCode, $sValue);
break;