';
diff --git a/htdocs/adherents/class/adherent_type.class.php b/htdocs/adherents/class/adherent_type.class.php
index ea7c68bbff8..cdb7f5a3086 100644
--- a/htdocs/adherents/class/adherent_type.class.php
+++ b/htdocs/adherents/class/adherent_type.class.php
@@ -996,6 +996,8 @@ class AdherentType extends CommonObject
{
global $langs, $user;
+ //$selected = (empty($arraydata['selected']) ? 0 : $arraydata['selected']);
+
$return = '
';
$return .= '
';
$return .= '
';
@@ -1004,7 +1006,6 @@ class AdherentType extends CommonObject
$return .= '';
$return .= ''.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'';
- //$selected = (empty($arraydata['selected']) ? 0 : $arraydata['selected']);
//$return .= '';
if ($user->rights->adherent->configurer) {
diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php
index 0013db9ffa9..c3c9f1b7863 100644
--- a/htdocs/adherents/list.php
+++ b/htdocs/adherents/list.php
@@ -1068,7 +1068,7 @@ while ($i < $imaxinloop) {
$memberstatic->type = $membertypestatic->label;
$memberstatic->photo = $obj->photo;
// Output Kanban
- print $memberstatic->getKanbanView('');
+ print $memberstatic->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == (min($num, $limit) - 1)) {
print '
';
print '';
diff --git a/htdocs/adherents/subscription/list.php b/htdocs/adherents/subscription/list.php
index c843992ed3b..833c0518d9a 100644
--- a/htdocs/adherents/subscription/list.php
+++ b/htdocs/adherents/subscription/list.php
@@ -647,7 +647,7 @@ while ($i < $imaxinloop) {
$subscription->fk_bank = $accountstatic->getNomUrl(1);
}
// Output Kanban
- print $subscription->getKanbanView('');
+ print $subscription->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '';
print '';
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index bd2b63f6f7d..ce16ba2db88 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -342,7 +342,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
}
//output kanban
$membertype->label = $objp->label;
- print $membertype->getKanbanView('');
+ print $membertype->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/admin/emailcollector_list.php b/htdocs/admin/emailcollector_list.php
index f7cb09e50be..6c916dff3db 100644
--- a/htdocs/admin/emailcollector_list.php
+++ b/htdocs/admin/emailcollector_list.php
@@ -555,7 +555,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output Kanban
- print $object->getKanbanView('');
+ print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/bom/bom_list.php b/htdocs/bom/bom_list.php
index 043d64ecedf..e8b648d94cd 100644
--- a/htdocs/bom/bom_list.php
+++ b/htdocs/bom/bom_list.php
@@ -688,7 +688,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output kanban
- print $object->getKanbanView('');
+ print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/bookcal/availabilities_list.php b/htdocs/bookcal/availabilities_list.php
index 8fe736c4b29..1be9db2df49 100644
--- a/htdocs/bookcal/availabilities_list.php
+++ b/htdocs/bookcal/availabilities_list.php
@@ -641,7 +641,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output Kanban
- print $object->getKanbanView('');
+ print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/bookcal/booking_list.php b/htdocs/bookcal/booking_list.php
index 1c074acf7a9..4bd9dbe116f 100644
--- a/htdocs/bookcal/booking_list.php
+++ b/htdocs/bookcal/booking_list.php
@@ -641,7 +641,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output Kanban
- print $object->getKanbanView('');
+ print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/bookmarks/list.php b/htdocs/bookmarks/list.php
index 88904357ab3..a299da1c3ee 100644
--- a/htdocs/bookmarks/list.php
+++ b/htdocs/bookmarks/list.php
@@ -350,7 +350,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output Kanban
- print $object->getKanbanView('');
+ print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php
index 9c826a4bb61..f49fa4974c6 100644
--- a/htdocs/comm/propal/class/propal.class.php
+++ b/htdocs/comm/propal/class/propal.class.php
@@ -4000,7 +4000,6 @@ class Propal extends CommonObject
$return .= '
';
$return .= '
';
$return .= img_picto('', $this->picto);
- //$return .= ''; // Can be image
$return .= '';
$return .= '
';
$return .= ''.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).'';
diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index da95eb1425b..11278a3dbaa 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -1722,7 +1722,7 @@ if ($resql) {
$userstatic->fetch($obj->fk_user_author);
$objectstatic->author = $userstatic->getNomUrl(1);
$objectstatic->fk_project = $projectstatic->getNomUrl(1);
- print $objectstatic->getKanbanView('');
+ print $objectstatic->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 8fff0f25e86..91d556c2822 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -2002,7 +2002,7 @@ if ($resql) {
print '
';
}
- print $generic_commande->getKanbanView('');
+ print $generic_commande->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php
index e65cff2ae2c..301838c9a46 100644
--- a/htdocs/compta/bank/list.php
+++ b/htdocs/compta/bank/list.php
@@ -600,7 +600,7 @@ foreach ($accounts as $key => $type) {
print '
';
}
// Output Kanban
- print $objecttmp->getKanbanView('');
+ print $objecttmp->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/bank/various_payment/list.php b/htdocs/compta/bank/various_payment/list.php
index df96a920f18..e0a7fb39a5e 100644
--- a/htdocs/compta/bank/various_payment/list.php
+++ b/htdocs/compta/bank/various_payment/list.php
@@ -639,7 +639,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output Kanban
- print $variousstatic->getKanbanView('');
+ print $variousstatic->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop) - 1) {
print '
';
print '';
diff --git a/htdocs/compta/cashcontrol/cashcontrol_list.php b/htdocs/compta/cashcontrol/cashcontrol_list.php
index 1e79b09cc37..f4b3253b783 100644
--- a/htdocs/compta/cashcontrol/cashcontrol_list.php
+++ b/htdocs/compta/cashcontrol/cashcontrol_list.php
@@ -578,7 +578,6 @@ while ($i < ($limit ? min($num, $limit) : $num)) {
$object->year_close = $obj->year_close;
$object->cheque = $obj->cheque;
-
print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == (min($num, $limit) - 1)) {
print '
';
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index abc43c402ba..e28b40d8b35 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -1929,10 +1929,7 @@ if ($resql) {
print '
';
}
// Output Kanban
- $facturestatic->socid = $companystatic->getNomUrl(1, 'company', 15);
- $userstatic->fetch($obj->fk_user_author);
- $facturestatic->fk_user_author = $userstatic->getNomUrl(1);
- print $facturestatic->getKanbanView('');
+ print $facturestatic->getKanbanView('', array('thirdparty'=>$companystatic->getNomUrl(1, 'company', 15), 'userauthor'=>$userstatic->getNomUrl(1), 'selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/localtax/list.php b/htdocs/compta/localtax/list.php
index dbd3bdafdbf..d97dd6cc709 100644
--- a/htdocs/compta/localtax/list.php
+++ b/htdocs/compta/localtax/list.php
@@ -104,7 +104,7 @@ if ($result) {
print '
';
}
// Output Kanban
- print $localtax_static->getKanbanView('');
+ print $localtax_static->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/paiement/cheque/list.php b/htdocs/compta/paiement/cheque/list.php
index 08c6096706a..04f2d325aba 100644
--- a/htdocs/compta/paiement/cheque/list.php
+++ b/htdocs/compta/paiement/cheque/list.php
@@ -262,7 +262,7 @@ if ($resql) {
print '
';
}
// Output Kanban
- print $checkdepositstatic->getKanbanView('');
+ print $checkdepositstatic->getKanbanView('', array('selected' => in_array($checkdepositstatic->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/prelevement/list.php b/htdocs/compta/prelevement/list.php
index e258fbe1e09..893a71fad3f 100644
--- a/htdocs/compta/prelevement/list.php
+++ b/htdocs/compta/prelevement/list.php
@@ -286,7 +286,7 @@ if ($result) {
print '
';
}
// Output Kanban
- print $bon->getKanbanView('');
+ print $bon->getKanbanView('', array('selected' => in_array($bon->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/prelevement/orders_list.php b/htdocs/compta/prelevement/orders_list.php
index 3b5325d2b30..699dcf587ff 100644
--- a/htdocs/compta/prelevement/orders_list.php
+++ b/htdocs/compta/prelevement/orders_list.php
@@ -239,7 +239,7 @@ if ($result) {
print '
';
}
// Output Kanban
- print $directdebitorder->getKanbanView('');
+ print $directdebitorder->getKanbanView('', array('selected' => in_array($obj->id, $arrayofselected)));
if ($i == (min($num, $limit) - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/sociales/list.php b/htdocs/compta/sociales/list.php
index ad552adacc3..ea415784943 100644
--- a/htdocs/compta/sociales/list.php
+++ b/htdocs/compta/sociales/list.php
@@ -640,8 +640,7 @@ while ($i < $imaxinloop) {
print '
';
}
// Output Kanban
- $chargesociale_static->fk_project = $projectstatic->getNomUrl();
- print $chargesociale_static->getKanbanView('', array('selected' => in_array($chargesociale_static->id, $arrayofselected)));
+ print $chargesociale_static->getKanbanView('', array('projectlink'=> $projectstatic->getNomUrl(1), 'selected' => in_array($chargesociale_static->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/compta/tva/list.php b/htdocs/compta/tva/list.php
index bf0c7bbc6e3..22ac6310efc 100644
--- a/htdocs/compta/tva/list.php
+++ b/htdocs/compta/tva/list.php
@@ -599,7 +599,7 @@ while ($i < $imaxinloop) {
$selected = 1;
}
}
- print $object->getKanbanView('');
+ print $object->getKanbanView('', array('selected' => in_array($object->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '
';
print '';
diff --git a/htdocs/contact/list.php b/htdocs/contact/list.php
index 426eb756ec7..2d64c5b8921 100644
--- a/htdocs/contact/list.php
+++ b/htdocs/contact/list.php
@@ -1308,7 +1308,7 @@ while ($i < $imaxinloop) {
if ($obj->socid > 0) {
$contactstatic->fetch_thirdparty($obj->socid);
}
- print $contactstatic->getKanbanView('');
+ print $contactstatic->getKanbanView('', array('selected' => in_array($contactstatic->id, $arrayofselected)));
if ($i == ($imaxinloop - 1)) {
print '