can set position of file with dol_move (#31201)

* can set position of file with dol_move

* Update api_documents.class.php

* Update api_documents.class.php

* fix

* fix

* fix

* fix

* fix
This commit is contained in:
Frédéric FRANCE
2024-09-30 16:49:38 +02:00
committed by GitHub
parent 7eb375d398
commit 44fdcdd8ed
4 changed files with 30 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
<?php
/* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
/* Copyright (C) 2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2023 Alexandre Janniaux <alexandre.janniaux@gmail.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -131,7 +132,8 @@ class RestAPIDocumentTest extends CommonClassTest
'filecontent' => "content text",
'fileencoding' => "",
'overwriteifexists' => 0,
'createdirifnotexists' => 0
'createdirifnotexists' => 0,
'position' => 0,
);
$param = '';
@@ -161,7 +163,8 @@ class RestAPIDocumentTest extends CommonClassTest
'filecontent' => "content text",
'fileencoding' => "",
'overwriteifexists' => 0,
'createdirifnotexists' => 0
'createdirifnotexists' => 0,
'position' => 0,
);
$param = '';
@@ -189,7 +192,8 @@ class RestAPIDocumentTest extends CommonClassTest
'filecontent' => "content text",
'fileencoding' => "",
'overwriteifexists' => 0,
'createdirifnotexists' => 1
'createdirifnotexists' => 1,
'position' => 0,
);
$param = '';