fix: Обновлены пути Nextcloud с /crm2/ на /crm/ для нового сервера

Обновленные файлы:
- crm_extensions/nextcloud_editor/js/nextcloud-editor.js (5 путей)
- crm_extensions/file_storage/api/get_edit_urls.php (6 путей)
- modules/Documents/actions/NcPrepareEdit.php (2 пути)
- crm_extensions/file_storage/api/prepare_edit.php (1 путь)
- crm_extensions/file_storage/NextcloudClient.php (1 путь)
- data/CRMEntity.php (nc_path для новых файлов)

Все пути теперь используют /crm/ вместо /crm2/ для соответствия новому External Storage на office.clientright.ru
This commit is contained in:
Fedor
2025-10-20 17:23:20 +03:00
parent 75d3f7942b
commit f582cf9c0f
6 changed files with 16 additions and 16 deletions

View File

@@ -203,7 +203,7 @@ class NextcloudClient {
if (substr($fileName, 0, 1) === '_') {
$fileName = substr($fileName, 1);
}
$editUrl = $this->baseUrl . '/apps/files/?dir=/crm2/CRM_Active_Files/Documents/' . $recordId . '&openfile=' . urlencode($fileName);
$editUrl = $this->baseUrl . '/apps/files/?dir=/crm/CRM_Active_Files/Documents/' . $recordId . '&openfile=' . urlencode($fileName);
return [
'success' => true,