Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into 10.0
Conflicts: htdocs/core/class/utils.class.php htdocs/core/lib/files.lib.php
This commit is contained in:
commit
b41b22996f
@ -221,6 +221,7 @@ print '<tr '.$bc[false].'><td style="padding-left: 8px">';
|
|||||||
<div class="formelementrow"><input type="checkbox"
|
<div class="formelementrow"><input type="checkbox"
|
||||||
name="use_transaction" value="yes" id="checkbox_use_transaction" /> <label
|
name="use_transaction" value="yes" id="checkbox_use_transaction" /> <label
|
||||||
for="checkbox_use_transaction"> <?php echo $langs->trans("UseTransactionnalMode"); ?></label>
|
for="checkbox_use_transaction"> <?php echo $langs->trans("UseTransactionnalMode"); ?></label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (! empty($conf->global->MYSQL_OLD_OPTION_DISABLE_FK)) { ?>
|
<?php if (! empty($conf->global->MYSQL_OLD_OPTION_DISABLE_FK)) { ?>
|
||||||
@ -243,14 +244,6 @@ print '<tr '.$bc[false].'><td style="padding-left: 8px">';
|
|||||||
<option value="ORACLE">ORACLE</option>
|
<option value="ORACLE">ORACLE</option>
|
||||||
<option value="POSTGRESQL">POSTGRESQL</option>
|
<option value="POSTGRESQL">POSTGRESQL</option>
|
||||||
</select> <br>
|
</select> <br>
|
||||||
<input type="checkbox" name="use_mysql_quick_param" value="yes" id="checkbox_use_quick" />
|
|
||||||
<label for="checkbox_use_quick">
|
|
||||||
<?php echo $form->textwithpicto(
|
|
||||||
$langs->trans('ExportUseMySQLQuickParameter'),
|
|
||||||
$langs->trans('ExportUseMySQLQuickParameterHelp')
|
|
||||||
); ?>
|
|
||||||
</label>
|
|
||||||
<br/>
|
|
||||||
<!-- <input type="checkbox" name="drop_database" value="yes"
|
<!-- <input type="checkbox" name="drop_database" value="yes"
|
||||||
id="checkbox_drop_database" /> <label for="checkbox_drop_database"><?php echo $langs->trans("AddDropDatabase"); ?></label>
|
id="checkbox_drop_database" /> <label for="checkbox_drop_database"><?php echo $langs->trans("AddDropDatabase"); ?></label>
|
||||||
-->
|
-->
|
||||||
|
|||||||
@ -262,7 +262,6 @@ class Utils
|
|||||||
if (GETPOST("disable_fk", "alpha") || $usedefault) $param.=" -K";
|
if (GETPOST("disable_fk", "alpha") || $usedefault) $param.=" -K";
|
||||||
if (GETPOST("sql_compat", "alpha") && GETPOST("sql_compat", "alpha") != 'NONE') $param.=" --compatible=".escapeshellarg(GETPOST("sql_compat", "alpha"));
|
if (GETPOST("sql_compat", "alpha") && GETPOST("sql_compat", "alpha") != 'NONE') $param.=" --compatible=".escapeshellarg(GETPOST("sql_compat", "alpha"));
|
||||||
if (GETPOST("drop_database", "alpha")) $param.=" --add-drop-database";
|
if (GETPOST("drop_database", "alpha")) $param.=" --add-drop-database";
|
||||||
if (GETPOST("use_mysql_quick_param", "alpha"))$param.=" --quick";
|
|
||||||
if (GETPOST("sql_structure", "alpha") || $usedefault)
|
if (GETPOST("sql_structure", "alpha") || $usedefault)
|
||||||
{
|
{
|
||||||
if (GETPOST("drop", "alpha") || $usedefault) $param.=" --add-drop-table=TRUE";
|
if (GETPOST("drop", "alpha") || $usedefault) $param.=" --add-drop-table=TRUE";
|
||||||
|
|||||||
@ -959,7 +959,7 @@ function dol_unescapefile($filename)
|
|||||||
*/
|
*/
|
||||||
function dolCheckVirus($src_file)
|
function dolCheckVirus($src_file)
|
||||||
{
|
{
|
||||||
global $conf, $db;
|
global $conf;
|
||||||
|
|
||||||
if (! empty($conf->global->MAIN_ANTIVIRUS_COMMAND))
|
if (! empty($conf->global->MAIN_ANTIVIRUS_COMMAND))
|
||||||
{
|
{
|
||||||
@ -1853,6 +1853,7 @@ function dol_convert_file($fileinput, $ext = 'png', $fileoutput = '', $page = ''
|
|||||||
if (empty($fileoutput)) $fileoutput=$fileinput.".".$ext;
|
if (empty($fileoutput)) $fileoutput=$fileinput.".".$ext;
|
||||||
|
|
||||||
$count = $image->getNumberImages();
|
$count = $image->getNumberImages();
|
||||||
|
|
||||||
if (! dol_is_file($fileoutput) || is_writeable($fileoutput))
|
if (! dol_is_file($fileoutput) || is_writeable($fileoutput))
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -388,7 +388,7 @@ function show_list_sending_receive($origin, $origin_id, $filter = '')
|
|||||||
//var_dump($expedition->linkedObjects);
|
//var_dump($expedition->linkedObjects);
|
||||||
|
|
||||||
$receiving='';
|
$receiving='';
|
||||||
if (count($expedition->linkedObjects['delivery']) > 0) $receiving=reset($expedition->linkedObjects['delivery']); // Take first link
|
if (!empty($expedition->linkedObjects['delivery'])) $receiving=reset($expedition->linkedObjects['delivery']); // Take first link
|
||||||
|
|
||||||
if (! empty($receiving))
|
if (! empty($receiving))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user