[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 85/119: Follow-up fix order
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 85/119: Follow-up fix order |
Date: |
Mon, 26 Oct 2020 18:27:30 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 41fb176fe3740ba76bd78e7275260b32d18fa3f6
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Mon Oct 12 12:26:13 2020 +0200
Follow-up fix order
---
include/action.inc.php | 3 +--
include/class/follow_up.class.php | 5 +++--
include/lib/html_input.class.php | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/action.inc.php b/include/action.inc.php
index 70406bb..e27e5f1 100644
--- a/include/action.inc.php
+++ b/include/action.inc.php
@@ -55,8 +55,7 @@ $sub_action=$http->request("sa","string","");
*/
$ag_id=$http->request("ag_id","string","0");
-$ac=$http->request("ac");
-$base=HtmlInput::request_to_string(array('ac','gDossier'),"");
+$base="do.php?".http_build_query(["ac"=>$http->request("ac"),"gDossier"=>Dossier::id()]);
echo '<div class="content">';
require_once NOALYSS_INCLUDE.'/action.common.inc.php';
echo "</div>";
diff --git a/include/class/follow_up.class.php
b/include/class/follow_up.class.php
index b04bc90..e24b46e 100644
--- a/include/class/follow_up.class.php
+++ b/include/class/follow_up.class.php
@@ -610,7 +610,8 @@ class Follow_Up
function myList($p_base, $p_filter="", $p_search="")
{
// for the sort
- $url=HtmlInput::get_to_string(array("closed_action",
"remind_date_end", "remind_date", "sag_ref", "only_internal", "state", "qcode",
"ag_dest_query", "action_query", "tdoc", "date_start", "date_end", "hsstate",
"searchtag")).'&'.$p_base;
+ $arg=HtmlInput::get_to_string(array("closed_action",
"remind_date_end", "remind_date", "sag_ref", "only_internal", "state", "qcode",
"ag_dest_query", "action_query", "tdoc", "date_start", "date_end", "hsstate",
"searchtag"),"");
+ $url=$p_base.$arg;
$table=new Sort_Table();
$table->add('Date Doc.', $url, 'order by ag_timestamp asc', 'order by
ag_timestamp desc', 'da', 'dd');
@@ -689,7 +690,7 @@ class Follow_Up
//show the sub_action
foreach ($a_row as $row)
{
- $href='<A class="document"
HREF="do.php?'.$p_base.HtmlInput::get_to_string(array("closed_action",
"remind_date_end", "remind_date", "sag_ref", "only_internal", "state",
"gDossier", "qcode", "ag_dest_query", "action_query", "tdoc", "date_start",
"date_end", "hsstate", "searchtag", "ac"),
"&").'&sa=detail&ag_id='.$row['ag_id'].'">';
+ $href='<A class="document"
HREF="'.$p_base.HtmlInput::get_to_string(array("closed_action",
"remind_date_end", "remind_date", "sag_ref", "only_internal", "state",
"gDossier", "qcode", "ag_dest_query", "action_query", "tdoc", "date_start",
"date_end", "hsstate", "searchtag", "ac"),
"").'&sa=detail&ag_id='.$row['ag_id'].'" title="detail">';
$i++;
$tr=($i%2==0)?'even':'odd';
if ($row['ag_priority']<2)
diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 7ca7c55..0cbbabb 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -680,7 +680,7 @@ class HtmlInput
static function array_to_string($array, $global_array, $start="?")
{
- $r=$start;
+ $r="";
if (count($global_array)==0)
return '';
@@ -704,7 +704,7 @@ class HtmlInput
}
$and="&";
}
-
+ if (trim ($r) != "") $r=$start.$r;
return $r;
}
- [Noalyss-commit] [noalyss] 100/119: Notice, (continued)
- [Noalyss-commit] [noalyss] 100/119: Notice, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 101/119: Grand livre waiting box, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 107/119: Follow-Up : comment optional, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 108/119: fix SQL bug, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 113/119: Bug : create card failed, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 112/119: Cosmetic Follow Up add waiting box for search, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 114/119: Cosmetic & version, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 115/119: Analytic accountancy protect against divide by zero, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 82/119: Follow up search card, add a button to select all , cosmetic add qcode in dialog box for contact option, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 83/119: Bug : from VEN , cannot get the price, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 85/119: Follow-up fix order,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 88/119: Fix bug : follow up option contact are not remove when document type changed, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 99/119: Upgrade DB 147, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 102/119: remove dead code, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 106/119: Filter_Multiselect : make a search on select (multi-row), Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 104/119: Select_Box Add new position : absolute, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 111/119: Follow-Up improve search, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 110/119: Follow Up : an action can have several parents, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 119/119: Tache #0001859: PARAM/CFGDOC : icone fermer + bouton, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 116/119: Modern CheckBox, Dany De Bontridder, 2020/10/26
- [Noalyss-commit] [noalyss] 118/119: Fontello : fix icon-edit, Dany De Bontridder, 2020/10/26