From 082e7d4d4b9ea95f4f1d7a48c9408fcaf5e22d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 30 Jun 2024 11:29:03 +0200 Subject: [PATCH] fix syntax error in branch 19.0 (#30201) * fix syntax error in branch 19.0 * Update stocktransfer.class.php --- htdocs/core/class/html.formmail.class.php | 2 +- .../stock/stocktransfer/class/stocktransfer.class.php | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index c3139bb3c78..971343d9c19 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -856,7 +856,7 @@ class FormMail extends Form // Preview of attachment $out .= img_mime($listofnames[$key]).' '.$listofnames[$key]; - $out .= $formfile->showPreview(array(), $formfile_params[2], $formfile_params[4], 0, ($entity == 1 ? '' : 'entity='.((int) $entity)); + $out .= $formfile->showPreview(array(), $formfile_params[2], $formfile_params[4], 0, ($entity == 1 ? '' : 'entity='.((int) $entity))); if (!$this->withfilereadonly) { $out .= ' '; //$out.= ' '.img_delete($langs->trans("Delete").''; diff --git a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php index 6aaa15f6401..aa8fcbc9545 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransfer.class.php @@ -63,12 +63,7 @@ class StockTransfer extends CommonObject public $isextrafieldmanaged = 1; /** - * @var int Name of subtable line - */ - public $table_element_line = 'stocktransfer_stocktransferline'; - - /** - * @var int Field with ID of parent key if this object has a parent + * @var string Field with ID of parent key if this object has a parent */ public $fk_element = 'fk_stocktransfer';