forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-31709 Correctly handle numeric Site IDs (sakaiproject#6435)
Where a site's ID was numeric, the favorites JS was sending the Site ID through as an integer rather than a string, causing an exception on the server side. Fixed this as follows: * Have the FavoritesHandler code (server-side) coerce all incoming Site IDs to Strings. * Modify the jQuery code to use `.attr()` instead of `.data()` when retrieving Site IDs off DOM elements. This avoids any attempt to coerce the stored values into JS types, which we didn't want anyway.
- Loading branch information
1 parent
c998e74
commit c148567
Showing
2 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters