Skip to content

Commit 9816c93

Browse files
authored
Merge pull request #10 from mendix/bugfix/mx_6_htmlset_issue
Check if HTML element is present
2 parents 6dd3dde + ce3613a commit 9816c93

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CustomString",
3-
"version": "2.2.5",
3+
"version": "2.2.6",
44
"description": "Create a string with a microflow",
55
"license": "",
66
"author": "",

src/CustomString/widget/CustomString.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ define([
8686

8787
_processSourceMFCallback: function (callback, returnedString) {
8888
logger.debug(this.id + "._processSourceMFCallback");
89-
html.set(this.customString, this.checkString(returnedString, this.renderHTML));
89+
if (this.customString) {
90+
html.set(this.customString, this.checkString(returnedString, this.renderHTML));
91+
}
9092
this._executeCallback(callback, "_processSourceMFCallback");
9193
},
9294

src/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<package xmlns="http://www.mendix.com/package/1.0/">
3-
<clientModule name="CustomString" version="2.2.5" xmlns="http://www.mendix.com/clientModule/1.0/">
3+
<clientModule name="CustomString" version="2.2.6" xmlns="http://www.mendix.com/clientModule/1.0/">
44
<widgetFiles>
55
<widgetFile path="CustomString/CustomString.xml"/>
66
<widgetFile path="CustomString/CustomStringNoContext.xml"/>

test/widgets/CustomString.mpk

2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)