XenForo Version: XF 2.2.x
CAS Version: CAS 2.2.27 and older
As per title, it is currently possible to configure categories to allow ads to be created without any ad types being set.
I've added a conditional to the _preSave() function in the Category Entity to throw an error when the "Allow ads to be created" option is enabled and no Allowed Ad Types have been set.
![Selection_999(250).png Selection_999(250).png](https://xenaddons.com/data/attachments/8/8462-00bd3bc2dafbceded76d532c21acebeb.jpg)
CAS Version: CAS 2.2.27 and older
As per title, it is currently possible to configure categories to allow ads to be created without any ad types being set.
I've added a conditional to the _preSave() function in the Category Entity to throw an error when the "Allow ads to be created" option is enabled and no Allowed Ad Types have been set.
![Selection_999(250).png Selection_999(250).png](https://xenaddons.com/data/attachments/8/8462-00bd3bc2dafbceded76d532c21acebeb.jpg)