Add a check to prevent total failure in the rare event of bad settings.

This commit is contained in:
Nathan Gray 2013-07-03 23:06:59 +00:00
parent b2f733c4d5
commit 67d2fb66c2

View File

@ -185,6 +185,7 @@ var et2_customfields_list = et2_valueWidget.extend([et2_IDetachedDOM, et2_IInput
.appendTo(this.tbody);
var cf = jQuery(document.createElement("td"))
.appendTo(row);
if(!field.type) field.type = 'text";'
var setup_function = '_setup_'+(apps[field.type] ? 'link_entry' : field.type.replace("-","_"));
var attrs = {