diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index f08be052e96..c49515fa63b 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -6721,16 +6721,9 @@ abstract class CommonObject
$dir = $sdir . '/';
$pdir = '/';
- if ($modulepart == 'ticket')
- {
- $dir .= get_exdir(0, 0, 0, 0, $this, $modulepart).$this->track_id.'/';
- $pdir .= get_exdir(0, 0, 0, 0, $this, $modulepart).$this->track_id.'/';
- }
- else
- {
- $dir .= get_exdir(0, 0, 0, 0, $this, $modulepart).$this->ref.'/';
- $pdir .= get_exdir(0, 0, 0, 0, $this, $modulepart).$this->ref.'/';
- }
+
+ $dir .= get_exdir(0, 0, 0, 0, $this, $modulepart).$this->ref.'/';
+ $pdir .= get_exdir(0, 0, 0, 0, $this, $modulepart).$this->ref.'/';
// For backward compatibility
if ($modulepart == 'product' && ! empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO))
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index dce42c79d33..58666899c77 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -7003,8 +7003,8 @@ class Form
// Left part of banner
if ($morehtmlleft)
{
- if ($conf->browser->layout == 'phone') $ret.='
'.$morehtmlleft.'
'; // class="center" to have photo in middle
- else $ret.=''.$morehtmlleft.'
';
+ if ($conf->browser->layout == 'phone') $ret.=''.$morehtmlleft.'
'; // class="center" to have photo in middle
+ else $ret.=''.$morehtmlleft.'
';
}
//if ($conf->browser->layout == 'phone') $ret.='';
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 4dcd9e33623..97743d5e264 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -1099,7 +1099,7 @@ function dol_get_fiche_head($links = array(), $active = '', $title = '', $notab
{
global $conf, $langs, $hookmanager;
- $out="\n".''."\n";
+ $out="\n".'
'."\n";
if ($morehtmlright) $out.='
'.$morehtmlright.'
'; // Output right area first so when space is missing, text is in front of tabs and not under.
@@ -1346,7 +1346,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
elseif ($object->element == 'ticket')
{
$width=80; $cssclass='photoref';
- $showimage=$object->is_photo_available($conf->ticket->multidir_output[$entity].'/'.$object->track_id);
+ $showimage=$object->is_photo_available($conf->ticket->multidir_output[$entity].'/'.$object->ref);
$maxvisiblephotos=(isset($conf->global->TICKETSUP_MAX_VISIBLE_PHOTO)?$conf->global->TICKETSUP_MAX_VISIBLE_PHOTO:2);
if ($conf->browser->layout == 'phone') $maxvisiblephotos=1;
if ($showimage) $morehtmlleft.='
'.$object->show_photos('ticket', $conf->ticket->multidir_output[$entity], 'small', $maxvisiblephotos, 0, 0, 0, $width, 0).'
';