In some cases (I don't really know the cause, but it doesn't matter) the issuedate in the 'old_issues' table ends up with NULL. In the case, there is an error when converting that date to the proper form during circulation (possibly happens elsewhere too, but that's where I saw it.)
Created attachment 11216 [details] [review] Bug 8532 - improve robustness when converting dates If undef is passed to the date format conversion function, it dies. This can happen when you have old data in the database. Better to handle it in some fashion rather than die, so now it just returns undef too.
This should be put into 3.8 also.
Created attachment 11261 [details] [review] Bug 8532 - improve robustness when converting dates If undef is passed to the date format conversion function, it dies. This can happen when you have old data in the database. Better to handle it in some fashion rather than die, so now it just returns undef too. Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> I replace "return undef" with just "return" to pass perlcritic
*** Bug 8537 has been marked as a duplicate of this bug. ***
Marcel if you could QA this, that would be fantastic!
Tiny patch, handling passed undefs. Passed QA
Pushed to 3.8.x, will be in 3.8.4
pushed to master. Already on stable, changing status accordingly