Having a required integer field on the same entity breaks AJAX