Skip to content

Commit

Permalink
Merge pull request #10 from mendix/bugfix/mx_6_htmlset_issue
Browse files Browse the repository at this point in the history
Check if HTML element is present
  • Loading branch information
JelteMX authored Apr 6, 2018
2 parents 6dd3dde + ce3613a commit 9816c93
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "CustomString",
"version": "2.2.5",
"version": "2.2.6",
"description": "Create a string with a microflow",
"license": "",
"author": "",
Expand Down
4 changes: 3 additions & 1 deletion src/CustomString/widget/CustomString.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ define([

_processSourceMFCallback: function (callback, returnedString) {
logger.debug(this.id + "._processSourceMFCallback");
html.set(this.customString, this.checkString(returnedString, this.renderHTML));
if (this.customString) {
html.set(this.customString, this.checkString(returnedString, this.renderHTML));
}
this._executeCallback(callback, "_processSourceMFCallback");
},

Expand Down
2 changes: 1 addition & 1 deletion src/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://www.mendix.com/package/1.0/">
<clientModule name="CustomString" version="2.2.5" xmlns="http://www.mendix.com/clientModule/1.0/">
<clientModule name="CustomString" version="2.2.6" xmlns="http://www.mendix.com/clientModule/1.0/">
<widgetFiles>
<widgetFile path="CustomString/CustomString.xml"/>
<widgetFile path="CustomString/CustomStringNoContext.xml"/>
Expand Down
Binary file modified test/widgets/CustomString.mpk
Binary file not shown.

0 comments on commit 9816c93

Please sign in to comment.