"Manage instalments" screen on payment plans with count of instalments = NULL (which we treat as if it = 1, which is annual payment plan) is not loading.
Before
"Manage instalments" does not load for payment plans with instalments count = NULL:
After
The manage instalments screen loads fine:
Technical details
When the recurring contribution number of instalments field is NULL and you open the manage instalments page,
the following error is thrown:
It seems that in that page controller we default the instalments count to 0 if its value in the database is NULL, which we later use as a divisor in one of the calculations in that page, which result in dividing by zero, which is infinity and presented in PHP as "INF", which is what we see above in the error log.
Here I am changing the default value for the instalments field to 1 instead of 0 in code, in case its value in the database is NULL,
not just in the affected page but also in other places that are not really affected, just as precaution.
Overview
"Manage instalments" screen on payment plans with count of instalments = NULL (which we treat as if it = 1, which is annual payment plan) is not loading.
Before
"Manage instalments" does not load for payment plans with instalments count = NULL:
After
The manage instalments screen loads fine:
Technical details
When the recurring contribution number of instalments field is NULL and you open the manage instalments page, the following error is thrown:
It seems that in that page controller we default the instalments count to 0 if its value in the database is NULL, which we later use as a divisor in one of the calculations in that page, which result in dividing by zero, which is infinity and presented in PHP as "INF", which is what we see above in the error log.
Here I am changing the default value for the instalments field to 1 instead of 0 in code, in case its value in the database is NULL, not just in the affected page but also in other places that are not really affected, just as precaution.