From 83ed6d73f143819fff008cb9e832e010880995c0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 12 Oct 2024 00:29:39 +0000 Subject: [PATCH] bug fixes --- Controller/ApiController.php | 2 +- Theme/Backend/client-view.tpl.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index b274b3e..40e1b6a 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -628,7 +628,7 @@ final class ApiController extends Controller fileNames: $request->getDataList('filenames'), files: $request->files, account: $request->header->account, - basePath: __DIR__ . '/../../../Modules/Media/Files/Modules/ClientManagement/Clients/' . ($request->getData('client') ?? '0'), + basePath: __DIR__ . '/../../../Modules/Media/Files/Modules/ClientManagement/Clients/' . ($request->getData('ref') ?? '0'), virtualPath: '/Modules/ClientManagement/Clients/' . ($request->getData('ref') ?? '0'), pathSettings: PathSettings::FILE_PATH, tag: $request->getDataInt('tag'), diff --git a/Theme/Backend/client-view.tpl.php b/Theme/Backend/client-view.tpl.php index a9c921a..5b3dcf9 100644 --- a/Theme/Backend/client-view.tpl.php +++ b/Theme/Backend/client-view.tpl.php @@ -1123,7 +1123,7 @@ echo $this->data['nav']->render(); - +
id, SmartDateTime::startOfYear($this->data['business_start']), new SmartDateTime('now')); ?>
@@ -1292,13 +1292,13 @@ echo $this->data['nav']->render();
- +
data['note']->render('client-note', 'notes', $client->notes, '{/api}client/note?csrf={$CSRF}', (string) $client->id); ?>
- +