Bug 30403 creates the syspref UpdateNotForLoanStatusOnCheckin, but it should have created UpdateNotForLoanStatusOnCheckout.
Bug 30403 _does_ create syspref UpdateNotForLoanStatusOnCheckout. It has same functionality as UpdateNotForLoanStatusOnCheckin (created in bug 11629) but for check outs. Hence the name.
Emmi, no, the atomic update is wrong: + $dbh->do(q{INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type ) VALUES ('UpdateNotForLoanStatusOnCheckin', '', 'NULL', 'This is a list of value pairs. When an item is check Please fix ASAP.
(In reply to Jonathan Druart from comment #2) > Emmi, no, the atomic update is wrong: > > + $dbh->do(q{INSERT IGNORE INTO systempreferences ( variable, value, > options, explanation, type ) VALUES ('UpdateNotForLoanStatusOnCheckin', '', > 'NULL', 'This is a list of value pairs. When an item is check > > Please fix ASAP. I see. Should I create a new atomicupdate file or fix this into db_rev 221200018.pl?
(In reply to Emmi Takkinen from comment #3) > (In reply to Jonathan Druart from comment #2) > > Emmi, no, the atomic update is wrong: > > > > + $dbh->do(q{INSERT IGNORE INTO systempreferences ( variable, value, > > options, explanation, type ) VALUES ('UpdateNotForLoanStatusOnCheckin', '', > > 'NULL', 'This is a list of value pairs. When an item is check > > > > Please fix ASAP. > > I see. Should I create a new atomicupdate file or fix this into db_rev > 221200018.pl? Both.
Created attachment 155968 [details] [review] Bug 34720: Fix bug 30403 atomic updat Bug 30403 had wrong syspref name in its atomic update file. This patch fixes this in db_rev 221200018.pl and adds new atomic update file.
Added patch, hopefully it's correct. If not, comment and I'll fix it.
Created attachment 156028 [details] [review] Bug 34720: Fix bug 30403 atomic update Bug 30403 had wrong syspref name in its atomic update file. This patch fixes this in db_rev 221200018.pl and adds new atomic update file. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Created attachment 156029 [details] [review] Bug 34720: Say if syspref has been inserted Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Thanks, Emmi!
Created attachment 156031 [details] [review] Bug 34720: Fix bug 30403 atomic update Bug 30403 had wrong syspref name in its atomic update file. This patch fixes this in db_rev 221200018.pl and adds new atomic update file. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Created attachment 156032 [details] [review] Bug 34720: Say if syspref has been inserted Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed to master for 23.11. Nice work everyone, thanks!
Pushed to 23.05.x for 23.05.04
Dependency missing for 22.11.x - not backporting