Skip to content

Commit

Permalink
Prevent unwanted warnings about unsaved changes when updating the art…
Browse files Browse the repository at this point in the history
…icle
  • Loading branch information
JoshuaLuckers committed Jul 17, 2019
1 parent 0761f79 commit ab1f866
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/components/articles/js/extras/tagfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ Ext.extend(Articles.extra.Tags,Ext.form.ComboBox,{
}

,isDirty : function() {
if(this.disabled || !this.rendered) {
if(this.disabled || !this.rendered || typeof this.getFieldValue() === 'undefined') {
return false;
}

return String(this.getFieldValue()) !== String(this.originalValue);
}

Expand Down

0 comments on commit ab1f866

Please sign in to comment.