Fix customfield sub-type restriction blocking all customfields

This commit is contained in:
Nathan Gray 2013-06-10 20:15:11 +00:00
parent c93b1d7080
commit 92aa694f97

View File

@ -89,7 +89,8 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
// Already excluded?
if(already_filtered && !this.options.fields[field_name]) continue;
if(!this.options.customfields[field_name].type2 || this.options.customfields[field_name].type2.length == 0)
if(!this.options.customfields[field_name].type2 || this.options.customfields[field_name].type2.length == 0 ||
this.options.customfields[field_name].type2 == '0')
{
// No restrictions
this.options.fields[field_name] = true;