Within a frontend Add Product form (using Craft Commerce) I'm having problems with a database error whenever a Users field is left empty.
Here's the field:
{% set teachers = craft.users.group('teachers') %}
<select name="fields[teacher][]">
<option value="">n/a</option>
{% for teacher in teachers %}
<option value="{{ teacher.id }}">{{ teacher.name }}</option>
{% endfor %}
</select>
I've tried setting the empty value to zero, but no luck. The forms works fine apart from this, so I don't think it's anything specific to Craft Commerce.