Navigation - Fix serialization error
authorTim Otten <totten@civicrm.org>
Tue, 10 Oct 2017 20:25:20 +0000 (21:25 +0100)
committerTim Otten <totten@civicrm.org>
Tue, 10 Oct 2017 20:25:20 +0000 (21:25 +0100)
commit290110efc17b8b7f34b8919daf7ecec9658c535a
tree4fcd59f64ab3076fa00a7c047e404f5ea3caa005
parent66165138eab0af96c74458f193461eabb56e183b
Navigation - Fix serialization error

Overview
--------

The navigation subsystem stores per-user data in the table
`civicrm_setting`.  Most access to this table goes through
`CRM_Core_BAO_Setting` or `Civi\Core\SettingsBag`.  However, certain
edge-cases produce a warning about a serialization error because
`CRM_Core_BAO_Navigation` does not participate.

Before
------
`CRM_Core_BAO_Navigation::resetNavigation()` generates malformed
records which cannot be read via `CRM_Core_BAO_Setting` or
`Civi\Core\SettingsBag`.

After
-----
`CRM_Core_BAO_Navigation::resetNavigation()` generates better records.
CRM/Core/BAO/Navigation.php