Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2025-12-18 14:15:02 +01:00
commit 616921506b
5 changed files with 5 additions and 6 deletions

View File

@ -361,6 +361,7 @@
--------------------------------------------------------------------------------
Changes in version 5.1.45
--------------------------------------------------------------------------------
- fix rest api endpoint PUT /folder/{id}/comment
--------------------------------------------------------------------------------
Changes in version 5.1.44

View File

@ -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");

View File

@ -2755,8 +2755,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'];

View File

@ -968,7 +968,6 @@ function onAddClipboard(ev) { /* {{{ */
return ret;
}
//function createStatusbar(obj) {
SeedDMSUpload.createStatusbar = function(obj) {
rowCount++;
var row="odd";

View File

@ -1002,7 +1002,6 @@ function onAddClipboard(ev) { /* {{{ */
return ret;
}
//function createStatusbar(obj) {
SeedDMSUpload.createStatusbar = function(obj) {
rowCount++;
var row="odd";