forked from Wavyzz/dolibarr
Fix bugs reported by https://scrutinizer-ci.com/g/Dolibarr/dolibarr/
This commit is contained in:
@@ -221,7 +221,7 @@ else if ($action == 'set_FICHINTER_DRAFT_WATERMARK')
|
|||||||
elseif ($action == 'set_FICHINTER_PRINT_PRODUCTS')
|
elseif ($action == 'set_FICHINTER_PRINT_PRODUCTS')
|
||||||
{
|
{
|
||||||
$val = GETPOST('FICHINTER_PRINT_PRODUCTS','alpha');
|
$val = GETPOST('FICHINTER_PRINT_PRODUCTS','alpha');
|
||||||
$res = dolibarr_set_const($db, "FICHINTER_PRINT_PRODUCTS",($val == 'on'),'bool',0,'',$conf->entity);
|
$res = dolibarr_set_const($db, "FICHINTER_PRINT_PRODUCTS",($val == 'on' ? 1 : 0),'bool',0,'',$conf->entity);
|
||||||
|
|
||||||
if (! $res > 0) $error++;
|
if (! $res > 0) $error++;
|
||||||
|
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ $formfile->form_attach_new_file($_SERVER['PHP_SELF'], $langs->trans("FormToTestF
|
|||||||
|
|
||||||
// List of document
|
// List of document
|
||||||
$filearray=dol_dir_list($upload_dir, "files", 0, '', '', 'name', SORT_ASC, 1);
|
$filearray=dol_dir_list($upload_dir, "files", 0, '', '', 'name', SORT_ASC, 1);
|
||||||
$formfile->list_of_documents($filearray, '', 'admin_temp', '');
|
$formfile->list_of_documents($filearray, null, 'admin_temp', '');
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ llxHeader();
|
|||||||
|
|
||||||
if ($object->id)
|
if ($object->id)
|
||||||
{
|
{
|
||||||
$head=contract_prepare_head($object, $user);
|
$head=contract_prepare_head($object);
|
||||||
|
|
||||||
dol_fiche_head($head, 'documents', $langs->trans("Contract"), 0, 'contract');
|
dol_fiche_head($head, 'documents', $langs->trans("Contract"), 0, 'contract');
|
||||||
|
|
||||||
|
|||||||
@@ -888,7 +888,7 @@ abstract class CommonObject
|
|||||||
|
|
||||||
if (! $this->table_element)
|
if (! $this->table_element)
|
||||||
{
|
{
|
||||||
dol_print_error('',get_class($this)."::load_previous_next_ref was called on objet with property table_element not defined", LOG_ERR);
|
dol_print_error('',get_class($this)."::load_previous_next_ref was called on objet with property table_element not defined");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user