Due to the fact that it is possible to have some lines in branchtransfers with an itemnumber that does not exists in table items. With the coming patch in this case the line with no biblios will be omitted.
Created attachment 3815 [details] [review] Patch
How is it possible to have a line in branchtransfers with an itemnumber that does not exist in table items? Would it be better to put the rest of the processing inside the if () { ... } rather than use a next short-circuit? Should we alert the user to the problem?
Updating Version : This ENH will be for Koha 3.8
Bug versionned for master. entries will be made against rel_3_8 once the patch has been applied (see thread about that on koha-devel yesterday)
Reiterating MJ's question: how is this possible? Please provide steps for reproducing this issue, so it can be tested.
I'm changing this to "in discussion" to move it out of the signoff queue while we wait to hear answers to the questions in comments.
Setting to RESOLVED/INVALID -- it's been over a year since the question was posed, and the FK on branchtransfers.itemnumber should make the bug impossible unless the wrong storage engine was being used.