From 1700f98f9034f4463260b70bc59d4b25aa3365e7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 18 Dec 2025 13:50:43 +0100 Subject: [PATCH 1/4] remove old comment --- views/bootstrap/styles/application.js | 1 - views/bootstrap4/styles/application.js | 1 - 2 files changed, 2 deletions(-) diff --git a/views/bootstrap/styles/application.js b/views/bootstrap/styles/application.js index 304cd5831..7ac34ff6b 100644 --- a/views/bootstrap/styles/application.js +++ b/views/bootstrap/styles/application.js @@ -968,7 +968,6 @@ function onAddClipboard(ev) { /* {{{ */ return ret; } - //function createStatusbar(obj) { SeedDMSUpload.createStatusbar = function(obj) { rowCount++; var row="odd"; diff --git a/views/bootstrap4/styles/application.js b/views/bootstrap4/styles/application.js index b6d11d8d9..d012ed3b5 100644 --- a/views/bootstrap4/styles/application.js +++ b/views/bootstrap4/styles/application.js @@ -1002,7 +1002,6 @@ function onAddClipboard(ev) { /* {{{ */ return ret; } - //function createStatusbar(obj) { SeedDMSUpload.createStatusbar = function(obj) { rowCount++; var row="odd"; From 736c30623a3f0038a6962cf69827903aa06aa2ec Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 18 Dec 2025 13:50:56 +0100 Subject: [PATCH 2/4] use () when calling require_once --- install/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/install.php b/install/install.php index 88b61025b..afdbb607d 100644 --- a/install/install.php +++ b/install/install.php @@ -62,7 +62,7 @@ function fileExistsInIncludePath($file) { /* {{{ */ /** * Load default settings + set */ -require_once '../vendor/autoload.php'; +require_once('../vendor/autoload.php'); require_once('../inc/inc.Version.php'); $ver = new SeedDMS_Version(); define("SEEDDMS_INSTALL", "on"); @@ -142,7 +142,7 @@ if(isset($settings->_extraPath)) */ $theme = "bootstrap"; include("../inc/inc.Language.php"); -include "../languages/en_GB/lang.inc"; +include("../languages/en_GB/lang.inc"); include("../inc/inc.ClassUI.php"); include("class.Install.php"); From 04952692d336d68796f388a9f5ffd7e47e123f7b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 18 Dec 2025 14:13:10 +0100 Subject: [PATCH 3/4] fix rest api endpoint PUT /folder/{id}/comment --- restapi/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restapi/index.php b/restapi/index.php index 7ca7dcd3e..5bc4535eb 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -2659,8 +2659,8 @@ final class SeedDMS_RestapiController { /* {{{ */ $params = $request->getParsedBody(); /* Setting an empty comment is allowed. */ - if ($params['comment']) { - return $this->renderer->json($response, array('success'=>false, 'message'=>'You must supply a new name', 'data'=>''))->withStatus(400); + if (empty($params['comment'])) { + return $this->renderer->json($response, array('success'=>false, 'message'=>'You must supply a new comment', 'data'=>''))->withStatus(400); } $newcomment = $params['comment']; From 66e9c2e2856cce9b8403cd864f67cc5339a82fd4 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 18 Dec 2025 14:14:38 +0100 Subject: [PATCH 4/4] add changes for 5.1.45 --- CHANGELOG | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG b/CHANGELOG index 7ab6d731a..64cfeea1e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ -------------------------------------------------------------------------------- Changes in version 5.1.45 -------------------------------------------------------------------------------- +- fix rest api endpoint PUT /folder/{id}/comment -------------------------------------------------------------------------------- Changes in version 5.1.44