Anonymous author link not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
15.10 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Now that we load some blocks via ajax the 'Allow anonymous pages' is not working right
When you are an admin and a user has made their page have anonymous author you see a link with ' (Author's name hidden) ' instead of name. On clicking that link it should show you the actual name, but it doesn't.
Things broken:
1) The js is not working for the ' (Author's name hidden) ' links when block loaded via ajax
2) The js is not working right if there are two blocks on a page showing pages with author = ' (Author's name hidden) ' as each one sets an id to use from a loop and so the id's are doubled.
The way this was implemented for the templates was a bit overblown.
Instead of trying to assign the index via the parent template then declare it in author.tpl and also include the author.js via the smarty, we can just do a js snippet in the author.tpl and call get_random_key() instead.
This way things are easier to understand and the js will function with ajax load
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/5358