Opened 2 years ago
Closed 2 years ago
#2831 closed Defect (fixed)
Widgets Quietly Fail When User Not Logged In
| Reported by: | mrsdonovan | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | Elgg 1.7.9 |
| Component: | Core | Version: | 1.7 |
| Severity: | minor | Keywords: | |
| Cc: | brett@… | Difficulty: | easy |
Description
In v1.7.6, if the user's login expires and they try to modify a widget, it should send them to the login page. Currently it fails silently with "no results found.".
This is probably a dup and/or has been fixed already.
Change History (5)
comment:1 Changed 2 years ago by cash
- Difficulty set to easy
- Milestone changed from Needs Review to Elgg 1.7.7
- Priority changed from normal to low
comment:2 Changed 2 years ago by cash
- Milestone changed from Elgg 1.7.7 to Elgg 1.7.8
moving this back to 1.7.8 since we're so close to 1.7.7 release
comment:3 Changed 2 years ago by cash
Don't think we can use 1.4.x .post() for this but will need to use .ajax()
comment:4 Changed 2 years ago by cash
- Milestone changed from Elgg 1.7.8 to Elgg 1.7.9
comment:5 Changed 2 years ago by brettp
- Resolution set to fixed
- Status changed from new to closed
(In [svn:9120]) Fixes #2831. Attempts to save widgets if not logged in displays an error instead of doing nothing.
Note: See
TracTickets for help on using
tickets.

Thanks for the report. I tested and can confirm this bug.
Mental note to self: the ajax post call is not checking the return value of the save action. It could check that at least provide an error message. Fowarding the user away from the dashboard/profile probably isn't the best idea as it can be very disconcerting to have your browser take you somewhere when you're not expecting it.