diff --git a/README.md b/README.md
index 82a7eda..c466a2b 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# SmartAssistant - עוזר חכם
-**גרסה:** 1.1.4 | **מחבר:** klear | **EspoCRM:** >= 8.0.0
+**גרסה:** 1.1.5 | **מחבר:** klear | **EspoCRM:** >= 8.0.0
## תיאור
עוזר AI מאוחד למשרד עורכי דין. מספק ממשק צ'אט צף עם שני מצבי עבודה: **מצב משרד** (סקירה כללית, התראות, סטטיסטיקות) ו**מצב תיק** (סיוע מעמיק בתיק ספציפי). כולל מערכת זיכרון תיק מובנית, ביצוע פעולות באישור המשתמש, ואינטגרציה עם Stream של EspoCRM.
diff --git a/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-action.js b/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-action.js
index 67c9669..480dbf9 100644
--- a/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-action.js
+++ b/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-action.js
@@ -5,7 +5,7 @@ define('modules/smart-assistant/views/stream/notes/smart-action', ['views/stream
templateContent: '' +
'
' +
'' +
- '{{post}}' +
+ '{{{formattedPost}}}' +
'
',
data: function () {
@@ -13,6 +13,8 @@ define('modules/smart-assistant/views/stream/notes/smart-action', ['views/stream
var noteData = this.model.get('data') || {};
var status = noteData.status || 'executed';
+ data.post = this.model.get('post');
+ data.formattedPost = this.getHelper().escapeString(data.post || '');
data.status = status;
if (status === 'executed') {
diff --git a/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-request.js b/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-request.js
index 09319c9..eb57c30 100644
--- a/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-request.js
+++ b/files/client/custom/modules/smart-assistant/src/views/stream/notes/smart-request.js
@@ -5,11 +5,22 @@ define('modules/smart-assistant/views/stream/notes/smart-request', ['views/strea
templateContent: '' +
'' +
'' +
- '{{post}}' +
+ '{{{formattedPost}}}' +
'
',
- setup: function () {
- NoteView.prototype.setup.call(this);
+ data: function () {
+ var data = NoteView.prototype.data.call(this);
+
+ data.formattedPost = this.formatPost(this.model.get('post'));
+
+ return data;
+ },
+
+ formatPost: function (text) {
+ if (!text) return '';
+ text = this.getHelper().escapeString(text);
+ text = text.replace(/\n/g, '
');
+ return text;
},
});
});
diff --git a/manifest.json b/manifest.json
index 92716fb..b431214 100644
--- a/manifest.json
+++ b/manifest.json
@@ -3,7 +3,7 @@
"module": "SmartAssistant",
"description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and n8n integration",
"author": "klear",
- "version": "1.1.4",
+ "version": "1.1.5",
"acceptableVersions": [
">=8.0.0"
],