Fix kanban view
This commit is contained in:
parent
2a491ce1a6
commit
cc5f8e6a53
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user