Icinga / icinga-web

Icinga Web 1.x, the old new web interface (EOL 31.12.2018)
22 stars 11 forks source link

[dev.icinga.com #8523] Resetting application state succeeds but throws an exception #1345

Closed icinga-migration closed 9 years ago

icinga-migration commented 9 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8523

Created by elippmann on 2015-02-25 09:36:08 +00:00

Assignee: elippmann Status: Resolved (closed on 2015-03-12 09:30:14 +00:00) Target Version: 1.13 Last Update: 2015-03-12 16:45:03 +00:00 (in Redmine)

Icinga Version: 1.11.7
Icinga Web Version: v1.11.2
IDO Version: 1.11.7
OS Version: all
DB Type: UNKNOWN
DB Version: all
Browser Version: all

When resetting the application state via the user's preferences menu the reset succeeds but an exception is thrown:

PHP Error Undefined variable: d (/opt/demo-private-icinga/icinga-web/app/modules/AppKit/lib/database/models/NsmUser.php:339)

Changesets

2015-02-25 10:11:08 +00:00 by elippmann ae31e77627fba860d5745159a1c8ba148f69296c

Fix exception when resetting the application's state

The foreach loop was missing braces. Now blobs will be shortened if $shortenBlob is true for every preference.
Before, this was only done on the last preference. Let's see if that has unexpected side effects.

refs #8523
icinga-migration commented 9 years ago

Updated by mfrosch on 2015-03-12 09:30:14 +00:00

Tested and merged into master.

icinga-migration commented 9 years ago

Updated by mfrosch on 2015-03-12 16:45:03 +00:00