diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 4724bf85d50..a600761d9b9 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -2198,7 +2198,7 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
// If the preview file is found
if (file_exists($fileimage)) {
$phototoshow = '
';
- $phototoshow .= '
.')
';
+ $phototoshow .= '
.')
';
$phototoshow .= '
';
}
}
diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php
index 84a8d355c1a..f0ef18e4dfd 100644
--- a/htdocs/societe/list.php
+++ b/htdocs/societe/list.php
@@ -113,6 +113,7 @@ $place = GETPOST('place', 'aZ09') ? GETPOST('place', 'aZ09') : '0'; // $place is
$diroutputmassaction = $conf->societe->dir_output.'/temp/massgeneration/'.$user->id;
+// Load variable for pagination
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
$sortfield = GETPOST('sortfield', 'aZ09comma');
$sortorder = GETPOST('sortorder', 'aZ09comma');
@@ -770,6 +771,7 @@ $num = $db->num_rows($resql);
$arrayofselected = is_array($toselect) ? $toselect : array();
+// Direct jump if only one record found
if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && ($search_all != '' || $search_cti != '') && $action != 'list') {
$obj = $db->fetch_object($resql);
$id = $obj->rowid;
@@ -1011,6 +1013,7 @@ foreach (array(1, 2, 3, 4, 5, 6) as $key) {
}
}
+// Add code for pre mass action (confirmation or email presend form)
$topicmail = "Information";
$modelmail = "thirdparty";
$objecttmp = new Societe($db);