Fix kanban view

This commit is contained in:
Laurent Destailleur 2023-01-05 04:17:36 +01:00
parent 2a491ce1a6
commit cc5f8e6a53

View File

@ -302,7 +302,13 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
$membertype = new AdherentType($db);
while ($i < $num) {
$i = 0;
/*$savnbfield = $totalarray['nbfield'];
$totalarray = array();
$totalarray['nbfield'] = 0;*/
$imaxinloop = ($limit ? min($num, $limit) : $num);
while ($i < $imaxinloop) {
$objp = $db->fetch_object($result);
$membertype->id = $objp->rowid;
@ -313,7 +319,6 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
$membertype->amount = $objp->amount;
$membertype->caneditamount = $objp->caneditamount;
if ($mode == 'kanban') {
if ($i == 0) {
print '<tr><td colspan="12">';
@ -321,7 +326,7 @@ if (!$rowid && $action != 'create' && $action != 'edit') {
}
//output kanban
$membertype->label = $objp->label;
$membertype->getKanbanView('');
print $membertype->getKanbanView('');
if ($i == ($imaxinloop - 1)) {
print '</div>';
print '</td></tr>';