From b9542e3980507bc9fc24ebc6c8e1e4885912e154 Mon Sep 17 00:00:00 2001 From: Chaim Date: Fri, 3 Apr 2026 12:05:30 +0000 Subject: [PATCH] fix: add missing var self = this in showDetail() self was resolving to window.self instead of the View instance inside the forEach callback, causing self.escapeString to fail. Co-Authored-By: Claude Opus 4.6 (1M context) --- README.md | 2 +- .../smart-assistant/src/views/dashlets/smart-assistant.js | 1 + manifest.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36dc8f9..82a7eda 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SmartAssistant - עוזר חכם -**גרסה:** 1.1.3 | **מחבר:** klear | **EspoCRM:** >= 8.0.0 +**גרסה:** 1.1.4 | **מחבר:** 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 1d5db55..42957fb 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 @@ -76,6 +76,7 @@ define('modules/smart-assistant/views/dashlets/smart-assistant', ['view'], funct }, showDetail: function (type) { + var self = this; var $detail = this.$el.find('.sa-dashlet-detail'); if (!type || type === this._activeType && $detail.html()) { diff --git a/manifest.json b/manifest.json index 4fff905..92716fb 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.3", + "version": "1.1.4", "acceptableVersions": [ ">=8.0.0" ],