castis/seaforium — Issue #16: Favorite thread button not working within threads
Author: peterryan
Created: 2011-11-04 21:19:45+00:00
State: open

The favorite thread button *at the top of a thread* doesn't work.

However, the fav-thread button does work when you've got a list of threads, so I'm guessing it's a problem with the request rather than a back-end issue?

I've had a _quick_ look with Wireshark and it appears that when I use the broken fav-button within threads, the response is:
[h4]A PHP Error was encountered[/h4]
[p]Message: Missing argument 2 for Ajax::favorite_thread()[/p]
[p]Filename: controllers/ajax.php[/p]
[p]Line Number: 152[/p]

[h4]A PHP Error was encountered[/h4]
[p]Severity: Notice[/p]
[p]Message: Undefined variable: key[/p]
[p]Filename: controllers/ajax.php[/p]
[p]Line Number: 154[/p]

Conversely, when I use the working fav-button in thread-lists, the response appears to be empty.