2
0
forked from Wavyzz/dolibarr

NEW On list of thirdparties, user can select fields to show.

Make phpunit test working again localy.
Add missing columns into llx_expedition.
This commit is contained in:
Laurent Destailleur
2015-10-14 23:50:36 +02:00
parent e22b0b9a57
commit 7f75a3da9d
30 changed files with 433 additions and 246 deletions

View File

@@ -921,7 +921,7 @@ function dolCopyDir($srcfile, $destfile, $newmask, $overwriteifexists)
*
* @param string $srcfile Source file (can't be a directory. use native php @rename() to move a directory)
* @param string $destfile Destination file (can't be a directory. use native php @rename() to move a directory)
* @param integer $newmask Mask for new file (0 by default means $conf->global->MAIN_UMASK)
* @param integer $newmask Mask in octal string for new file (0 by default means $conf->global->MAIN_UMASK)
* @param int $overwriteifexists Overwrite file if exists (1 by default)
* @return boolean True if OK, false if KO
*/
@@ -954,7 +954,7 @@ function dol_move($srcfile, $destfile, $newmask=0, $overwriteifexists=1)
// Currently method is restricted to files (dol_delete_files previously used is for files, and mask usage if for files too)
// to allow mask usage for dir, we shoul introduce a new param "isdir" to 1 to complete newmask like this
// if ($isdir) $newmaskdec |= octdec('0111'); // Set x bit required for directories
@chmod($newpathofdestfile, $newmaskdesc);
@chmod($newpathofdestfile, $newmaskdec);
}
return $result;