Bug in nextProject()?

Federico's Avatar

Federico

14 Apr, 2015 05:39 PM

Hello and thanks for the great work!

I think there could be a bug in the nextProject() function in cms/system/modules/projects/view.php:
first line of the function is "global $clerk, $project;".
If that function is called in the header of the page, projectTitle() returns nothing because I guess it loses its reference to the right project or something like that.
I changed that line to use just $clerk global, as it is in prevProject() function, and it seems to work ok (although I didn't do extensive testing yet). Could it be a proper solution or am I risking to break something else?

Thanks

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac