From d266380e6d7209f0fcb391afdd9fed355eb235c6 Mon Sep 17 00:00:00 2001 From: Chaim Date: Wed, 27 May 2026 09:12:48 +0000 Subject: [PATCH] fix(2.10.1): CaseMemory Controller + correct layout path Two UI-breaking issues discovered after 2.10.0 hot-patch: * Hitting /#CaseMemory in the navbar returned a 404 because CaseMemory was missing a Controller class. The entity used to be accessed only through Case relation panels and SmartAssistant action endpoints, so the bare REST surface was never wired. Same one-liner fix pattern as the AssistantRule controller in 2.9.2. * Layouts were placed under Resources/metadata/layouts/... but EspoCRM expects them at Resources/layouts/... (without the metadata/ prefix). Result: every new entity rendered only one column / one row in list views because EspoCRM fell back to a generic default layout. Moved AssistantPrompt, AssistantRule, AssistantSkill, CaseMemory, UserProfile layouts to the canonical path. Verified all five list endpoints now serve the configured columns. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../SmartAssistant/Controllers/CaseMemory.php | 17 +++++++++++++++++ .../layouts/AssistantPrompt/detail.json | 0 .../layouts/AssistantPrompt/list.json | 0 .../layouts/AssistantRule/detail.json | 0 .../layouts/AssistantRule/list.json | 0 .../layouts/AssistantSkill/detail.json | 0 .../layouts/AssistantSkill/list.json | 0 .../layouts/CaseMemory/detail.json | 0 .../layouts/CaseMemory/detailSmall.json | 0 .../{metadata => }/layouts/CaseMemory/list.json | 0 .../layouts/CaseMemory/listSmall.json | 0 .../layouts/UserProfile/detail.json | 0 .../layouts/UserProfile/list.json | 0 manifest.json | 2 +- 14 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 files/custom/Espo/Modules/SmartAssistant/Controllers/CaseMemory.php rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/AssistantPrompt/detail.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/AssistantPrompt/list.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/AssistantRule/detail.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/AssistantRule/list.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/AssistantSkill/detail.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/AssistantSkill/list.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/CaseMemory/detail.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/CaseMemory/detailSmall.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/CaseMemory/list.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/CaseMemory/listSmall.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/UserProfile/detail.json (100%) rename files/custom/Espo/Modules/SmartAssistant/Resources/{metadata => }/layouts/UserProfile/list.json (100%) diff --git a/files/custom/Espo/Modules/SmartAssistant/Controllers/CaseMemory.php b/files/custom/Espo/Modules/SmartAssistant/Controllers/CaseMemory.php new file mode 100644 index 0000000..568de0e --- /dev/null +++ b/files/custom/Espo/Modules/SmartAssistant/Controllers/CaseMemory.php @@ -0,0 +1,17 @@ +=8.0.0" ],