|
@@ -293,7 +293,7 @@ if ($object->ismultientitymanaged == 1) {
|
|
|
$sql .= " WHERE 1 = 1";
|
|
|
}
|
|
|
if (!empty($projectstatic->id)) {
|
|
|
- $sql .= " AND t.fk_project=".((int) $projectstatic->id);
|
|
|
+ $sql .= " AND t.fk_project = ".((int) $projectstatic->id);
|
|
|
}
|
|
|
foreach ($search as $key => $val) {
|
|
|
if (array_key_exists($key, $object->fields)) {
|
|
@@ -375,7 +375,7 @@ $num = $db->num_rows($resql);
|
|
|
if ($num == 1 && !empty($conf->global->MAIN_SEARCH_DIRECT_OPEN_IF_ONLY_ONE) && $search_all && !$page) {
|
|
|
$obj = $db->fetch_object($resql);
|
|
|
$id = $obj->rowid;
|
|
|
- header("Location: ".dol_buildpath('/eventorganization/conferenceorboothattendee_card.php', 1).'?id='.$id);
|
|
|
+ header("Location: ".DOL_URL_ROOT.'/eventorganization/conferenceorboothattendee_card.php?id='.((int) $id));
|
|
|
exit;
|
|
|
}
|
|
|
|
|
@@ -600,7 +600,7 @@ if ($projectstatic->id > 0 || $confOrBooth > 0) {
|
|
|
//print '</span>';
|
|
|
print '</td><td>';
|
|
|
$linksuggest = $dolibarr_main_url_root.'/public/project/index.php?id='.$projectstatic->id;
|
|
|
- $encodedsecurekey = dol_hash(getDolGlobalString("EVENTORGANIZATION_SECUREKEYEVENTORGANIZATION_SECUREKEY").'conferenceorbooth'.$projectstatic->id, 'md5');
|
|
|
+ $encodedsecurekey = dol_hash(getDolGlobalString("EVENTORGANIZATION_SECUREKEY").'conferenceorbooth'.$projectstatic->id, 'md5');
|
|
|
$linksuggest .= '&securekey='.urlencode($encodedsecurekey);
|
|
|
//print '<div class="urllink">';
|
|
|
//print '<input type="text" value="'.$linksuggest.'" id="linkregister" class="quatrevingtpercent paddingrightonly">';
|
|
@@ -685,6 +685,9 @@ if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) {
|
|
|
if ($limit > 0 && $limit != $conf->liste_limit) {
|
|
|
$param .= '&limit='.((int) $limit);
|
|
|
}
|
|
|
+if ($optioncss != '') {
|
|
|
+ $param .= '&optioncss='.urlencode($optioncss);
|
|
|
+}
|
|
|
foreach ($search as $key => $val) {
|
|
|
if (is_array($search[$key])) {
|
|
|
foreach ($search[$key] as $skey) {
|
|
@@ -707,9 +710,6 @@ if ($projectstatic->id > 0) {
|
|
|
$param .= '&fk_project='.urlencode($projectstatic->id);
|
|
|
}
|
|
|
$param .= $withProjectUrl;
|
|
|
-if ($optioncss != '') {
|
|
|
- $param .= '&optioncss='.urlencode($optioncss);
|
|
|
-}
|
|
|
|
|
|
// Add $param from extra fields
|
|
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
|