From b8e8c01da5d99d8873bccd7c18917d218dcc01cb Mon Sep 17 00:00:00 2001 From: Chaim Date: Fri, 3 Apr 2026 11:26:19 +0000 Subject: [PATCH] fix: use self.escapeString() for consistency with EspoCRM API Replace jQuery text escaping with EspoCRM's built-in View.escapeString() to maintain consistency with the rest of the codebase. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 2 +- .../smart-assistant/src/views/dashlets/smart-assistant.js | 2 +- manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b806d63..ff0ce6e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SmartAssistant - עוזר חכם -**גרסה:** 1.1.1 | **מחבר:** klear | **EspoCRM:** >= 8.0.0 +**גרסה:** 1.1.2 | **מחבר:** klear | **EspoCRM:** >= 8.0.0 ## תיאור עוזר AI מאוחד למשרד עורכי דין. מספק ממשק צ'אט צף עם שני מצבי עבודה: **מצב משרד** (סקירה כללית, התראות, סטטיסטיקות) ו**מצב תיק** (סיוע מעמיק בתיק ספציפי). כולל מערכת זיכרון תיק מובנית, ביצוע פעולות באישור המשתמש, ואינטגרציה עם Stream של EspoCRM. diff --git a/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js b/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js index 2f04b8a..1d5db55 100644 --- a/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js +++ b/files/client/custom/modules/smart-assistant/src/views/dashlets/smart-assistant.js @@ -119,7 +119,7 @@ define('modules/smart-assistant/views/dashlets/smart-assistant', ['view'], funct html += '
' + '' + - link + $('').text(a.message).html() + linkEnd + + link + self.escapeString(a.message) + linkEnd + '
'; }); diff --git a/manifest.json b/manifest.json index 10bb222..653cc18 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.1", + "version": "1.1.2", "acceptableVersions": [ ">=8.0.0" ],