Opened 13 years ago
Closed 8 years ago
#4152 closed defect (bug) (fixed)
Favorite/Remove Favorite ajax does not report failure
Reported by: | boonebgorges | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Templates | Keywords: | |
Cc: |
Description
The AJAX handlers bp_dtheme_mark_activity_favorite()
and bp_dtheme_unmark_activity_favorite()
return the opposite text string, regardless of what bp_activity_add_user_favorite()
or bp_activity_remove_user_favorite()
return. As a result, if those functions return false, it'll look to the user like the action has been successful.
Change History (7)
#3
@
13 years ago
I think that a real error message would be best, but I'll admit that I'm not quite sure how it would work. However, returning "Favorite" when favoriting fails, as you suggest, is certainly a more accurate way to respond than the current system.
#5
@
13 years ago
- Milestone changed from 1.6 to Future Release
I've tweaked the message to return the same text again if the action fails; at least it is more accurate now. Putting ticket in future release milestone for further consideration or patches of how we should handle this better.
#7
@
8 years ago
- Milestone Future Release deleted
- Resolution set to fixed
- Status changed from new to closed
As the initial issue is fixed by Paul years ago, and there is no interest and new ideas about how to handle error reporting on failure (and in my opinion we should not display error in this case for end-user), I'm closing this ticket as actually fixed. IMO - this is not urgent and not important task.
In case you have ideas and/or passion to move it further and provide a feedback mechanism - feel free to reopen.
What do you want it to do? Just return "Favourite" again if the favouring fails, etc ?