Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d266380e6d | |||
| 1d200fc3f6 |
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Espo\Modules\SmartAssistant\Controllers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Standard CRUD over /api/v1/CaseMemory.
|
||||||
|
*
|
||||||
|
* Until SmartAssistant 2.10.0 the CaseMemory entity was created via
|
||||||
|
* CaseMemoryService::createMemory and listed via Case relation panels —
|
||||||
|
* never via the bare REST endpoint. Flipping `tab: true` exposes the
|
||||||
|
* navbar list view, which uses GET /api/v1/CaseMemory and needs this
|
||||||
|
* Controller class to exist (otherwise EspoCRM returns 404 "Controller
|
||||||
|
* does not exist"). Same pattern as the AssistantRule fix shipped in 2.9.2.
|
||||||
|
*/
|
||||||
|
class CaseMemory extends \Espo\Core\Controllers\Record
|
||||||
|
{
|
||||||
|
}
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"module": "SmartAssistant",
|
"module": "SmartAssistant",
|
||||||
"description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration",
|
"description": "Unified AI Assistant for Legal CRM — floating chat with case memory, office alerts, and AI Gateway integration",
|
||||||
"author": "klear",
|
"author": "klear",
|
||||||
"version": "2.10.0",
|
"version": "2.10.1",
|
||||||
"acceptableVersions": [
|
"acceptableVersions": [
|
||||||
">=8.0.0"
|
">=8.0.0"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -72,7 +72,10 @@ class AfterInstall
|
|||||||
'content' => $row['content'] ?? '',
|
'content' => $row['content'] ?? '',
|
||||||
'isActive' => true,
|
'isActive' => true,
|
||||||
]);
|
]);
|
||||||
$entityManager->saveEntity($entity);
|
// skipAll bypasses beforeSave hooks that require a logged-in user
|
||||||
|
// service (install runs without a session) and ACL checks (we're
|
||||||
|
// seeding firm-wide defaults; no user is implicated).
|
||||||
|
$entityManager->saveEntity($entity, ['skipAll' => true]);
|
||||||
$created++;
|
$created++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user