Fixed XF\Service\Contact::validate gets called twice

Xon

Well-known member
Affected version
2.0.2
actionContact explicitly calls validate(), and then the contact service's send()[icode] calls it again.
 
You're not wrong. We could have probably used the ValidateAndSavableTrait here but too late to add that now so I've just added a validated class property to store the validated state so we can prevent it running twice.
 
Back
Top Bottom