Skip to content

Settings->My Settings->Start Page is saved but not honored #9513

@jrafanie

Description

@jrafanie

Summary: The edit form for the My settings page isn't saving the start page correctly.

I set start page to utilization. See below:

Image

It's saved. If I leave the page and come back, it's still correctly showing Overview/Utilization.

If I log out and log back in, it still shows Dashboard.

If I check the user settings, it's because the value is set incorrectly:

vmdb(dev)> User.first.settings[:display][:startpage]
=> {:value=>"/utilization", :label=>"Overview / Utilization"}

If I change it to:

"/utilization", and log in again, it works:

vmdb(dev)> u = User.first; u.settings[:display][:startpage] = u.settings[:display][:startpage][:value]; puts u.update(:settings =>  u.settings)
true
=> nil
vmdb(dev)> User.first.settings[:display][:startpage]
=> "/utilization"
vmdb(dev)>

Image

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions