If a patron has no checked-in barcodes to export, Koha should not prompt to download an empty file. The pop-up window should instead give a message saying there are none.
The feature is in the patron account > More > Export today's checked in barcodes. The problem still exists.
This could increase significantly all pages where this link is displayed. I am not sure it is worth to do it.
Hm, could we always display the link, but fall back to a nice alert "no checkouts to export" after the link was clicked?
If the file is empty, I suppose the librarian will understand easily why it is empty, don't you think?
It would save some additional steps - saving and checking the file. It would be nice, I suggest changing this to enh.
I still think some additional logic here would be nice.
Created attachment 88988 [details] [review] Bug 9099: WIP - Hide the export of today's checkins if none FIXME: - Add POD - Add tests This patch is for discussion as I do not think it is ready for inclusion: as the page is not reloaded/updated when a checkin is done, the link will stay hidden.