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