futuresight / futurebb

The forum system by FutureSight Technologies. A live sample can be seen at http://futuresight.org/forums
http://futurebb.futuresight.org
2 stars 2 forks source link

Forums in new categories aren't actually showing up #94

Closed jacob-g closed 9 years ago

jacob-g commented 9 years ago

If you create a category then immediately start adding forums, they don't show up.

jacob-g commented 9 years ago

One of them showed up in the database as category -2.

This was repeated elsewhere.

jacob-g commented 9 years ago

Found the problem: the JS editor gives it a temporary ID of -2 (-3, -4, ... for subsequent new categories). When the form processor receives the information, it doesn't map the temporary id to the new id.

jacob-g commented 9 years ago

The bug was the result of porting the system to the centralized create_forum function while not considering the mappings when choosing the category id.