Skip to content

Commit c5c4328

Browse files
committed
Remove 0 from the list of selected debts
1 parent dbd620f commit c5c4328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alma_user/alma_user.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,6 @@ function alma_user_debt_dibs_add_payment($transaction) {
250250
watchdog('alma_user', 'No session in add payment. Transaction: @transaction', array('@transaction' => print_r($transaction, TRUE)), WATCHDOG_EMERG);
251251
}
252252
else {
253-
alma_client_invoke('add_payment', implode(',', $transaction['params']['selected_debts']), $transaction['payment_order_id']);
253+
alma_client_invoke('add_payment', implode(',', array_filter($transaction['params']['selected_debts'])), $transaction['payment_order_id']);
254254
}
255255
}

0 commit comments

Comments
 (0)