Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
driskull committed Mar 6, 2015
1 parent 0d3b0ed commit 1cfbfbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ define([
this._createFormElements(currentField, index, null);
}));
// if form has attachments
if (this._formLayer.hasAttachments && this.config.attachmentInfo[this._formLayer.id].enableAttachments) {
if (this._formLayer.hasAttachments && this.config.attachmentInfo[this._formLayer.id] && this.config.attachmentInfo[this._formLayer.id].enableAttachments) {
var requireField = null, helpBlock, labelHTML = "", divRowContainer, divRow, divColumn1, fileBtnSpan, fileInput, fileChange,
divColumn2, fileListContainer, fileListRow, fileListColumn, fileForm;
userFormNode = dom.byId('userForm');
Expand Down

0 comments on commit 1cfbfbb

Please sign in to comment.