fix syntax error in branch 19.0 (#30201)

* fix syntax error in branch 19.0

* Update stocktransfer.class.php
This commit is contained in:
Frédéric FRANCE 2024-06-30 11:29:03 +02:00 committed by GitHub
parent b2e288f8ec
commit 082e7d4d4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View file

@ -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 .= ' <input type="image" style="border: 0px;" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/delete.png" value="'.($key + 1).'" class="removedfile" id="removedfile_'.$key.'" name="removedfile_'.$key.'" />';
//$out.= ' <a href="'.$_SERVER["PHP_SELF"].'?removedfile='.($key+1).' id="removedfile_'.$key.'">'.img_delete($langs->trans("Delete").'</a>';

View file

@ -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';