In my component's JTable's subclass, I have overridden the check() method to perform my internal checks, when saving an item with my JModelAdmin subclass.
So when saving an item, if any of those fails, my check()
method returns false, and set to display a corresponding error message, using JFactory::getApplication()->enqueueMessage(JText::_('SOME_ERROR_OCCURRED'), 'error');
The problem is that every time there is an error on my JTable's check method, I get 2 displayed error messages. On top there is the one that I have enqueued, followed always by a second one:
Save failed with the following reason:
with no reason specified.
Why I am getting the second error message?