[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Bug 7671 depends on bug 9038, which changed state. Bug 9038 Summary: Paying fines doesn't work http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9038 What|Removed |Added Status|NEW |RESOLVED Resolution|--- |INVALID -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Owen Leonard changed: What|Removed |Added Depends on||9038 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Paul Poulain changed: What|Removed |Added Status|Passed QA |Pushed to Master Version|master |rel_3_10 Severity|major |enhancement --- Comment #32 from Paul Poulain --- Patch pushed to master I've marked this patch as an ENH. I think it's not wise to push it to 3.8, because there can be side effect that could be hard to spot. So proposing to delay this to 3.10 only. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Mason James changed: What|Removed |Added Status|Signed Off |Passed QA --- Comment #31 from Mason James --- > Signed-off-by: Chris Cormack > Signed-off-by: Kyle M Hall woah, sorry about that, git-bz when a little crazy on me... :/ i rebased these patches as i got a UTF-utf header error patches looks good, passing QA… $ koha-qa.pl -c 2 testing 2 commit(s) (applied to commit 0acebb8) * f38273f Bug 7671 : followup : delete return of makepayment because unused C4/Accounts.pm installer/data/mysql/updatedatabase.pl * c9c2f88 Bug 7671 : add a real primary key accountlines_id in accountlines C4/Accounts.pm C4/Circulation.pm installer/data/mysql/kohastructure.sql installer/data/mysql/updatedatabase.pl koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt members/boraccount.pl members/pay.pl members/paycollect.pl members/printinvoice.pl * C4/Accounts.pm OK * installer/data/mysql/updatedatabase.pl OK * C4/Circulation.pmOK * members/boraccount.plOK * members/pay.pl OK * members/paycollect.plOK * members/printinvoice.pl OK * koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.ttOK * koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt OK * koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.ttOK -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Mason James changed: What|Removed |Added Attachment #12056|0 |1 is obsolete|| Attachment #12219|0 |1 is obsolete|| --- Comment #30 from Mason James --- Created attachment 12221 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12221&action=edit Bug 7671 : add a real primary key accountlines_id in accountlines Signed-off-by: Stéphane Delaune Signed-off-by: Marc Veron NOTE: After applying the patch I got following errors in members/pay.pl: Global symbol "$writeoff_sth" requires explicit package name Global symbol "$add_writeoff_sth" requires explicit package name Added to lines at the begin of members/pay.pl: our $writeoff_sth; our $add_writeoff_sth; Now the patch worked as expected. However I am not quite sure if signing off is OK in this situation. Marc Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Mason James changed: What|Removed |Added Attachment #12220|0 |1 is obsolete|| --- Comment #29 from Mason James --- Comment on attachment 12220 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12220 Bug 7671 : add a real primary key accountlines_id in accountlines oops -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Mason James changed: What|Removed |Added Attachment #12055|0 |1 is obsolete|| --- Comment #28 from Mason James --- Created attachment 12220 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12220&action=edit Bug 7671 : add a real primary key accountlines_id in accountlines Signed-off-by: Stéphane Delaune Signed-off-by: Marc Veron NOTE: After applying the patch I got following errors in members/pay.pl: Global symbol "$writeoff_sth" requires explicit package name Global symbol "$add_writeoff_sth" requires explicit package name Added to lines at the begin of members/pay.pl: our $writeoff_sth; our $add_writeoff_sth; Now the patch worked as expected. However I am not quite sure if signing off is OK in this situation. Marc Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #27 from Mason James --- Created attachment 12219 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12219&action=edit Bug 7671 : add a real primary key accountlines_id in accountlines Signed-off-by: Stéphane Delaune Signed-off-by: Marc Veron NOTE: After applying the patch I got following errors in members/pay.pl: Global symbol "$writeoff_sth" requires explicit package name Global symbol "$add_writeoff_sth" requires explicit package name Added to lines at the begin of members/pay.pl: our $writeoff_sth; our $add_writeoff_sth; Now the patch worked as expected. However I am not quite sure if signing off is OK in this situation. Marc Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Kyle M Hall changed: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Kyle M Hall changed: What|Removed |Added Attachment #12051|0 |1 is obsolete|| --- Comment #26 from Kyle M Hall --- Created attachment 12056 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12056&action=edit Bug 7671 : followup : delete return of makepayment because unused, fix updatedatabase Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Kyle M Hall changed: What|Removed |Added Attachment #11922|0 |1 is obsolete|| --- Comment #25 from Kyle M Hall --- Created attachment 12055 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12055&action=edit Bug 7671 : add a real primary key accountlines_id in accountlines Signed-off-by: Stéphane Delaune Signed-off-by: Marc Veron NOTE: After applying the patch I got following errors in members/pay.pl: Global symbol "$writeoff_sth" requires explicit package name Global symbol "$add_writeoff_sth" requires explicit package name Added to lines at the begin of members/pay.pl: our $writeoff_sth; our $add_writeoff_sth; Now the patch worked as expected. However I am not quite sure if signing off is OK in this situation. Marc Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 stephane.dela...@biblibre.com changed: What|Removed |Added Status|Failed QA |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #24 from stephane.dela...@biblibre.com --- Created attachment 12051 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=12051&action=edit followup followup : delete return of makepayment because unused, fix updatedatabase -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Paul Poulain changed: What|Removed |Added Status|Passed QA |Failed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #23 from Paul Poulain --- QA comment: This part of the code is wrong: +my $sthr = $dbh->prepare("SELECT max(accountlines_id) AS lastinsertid FROM accountlines"); +$sthr->execute(); +my $datalastinsertid = $sthr->fetchrow_hashref; +$sthr->finish; +return $datalastinsertid->{'lastinsertid'}; => in case 2 lines are added by 2 librarians almost at the same time, you may get a wrong lastinsertid + this add an unneeded SQL query. Please use $rv = $dbh->last_insert_id($catalog, $schema, $table, $field); instead Also note that your updatedatabase misses a } (it does not compile): $dbh->do("UPDATE systempreferences SET value = 'call_number' WHERE variable = 'OPACdefaultSortField' AND value = 'callnumber'"); print "Upgrade to $DBversion done (Bug 8657 - Default sort by call number does not work. Correcting system preference value.)\n"; SetVersion ($DBversion); + < SHOULD BE A } HERE + +$DBversion = "XXX"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { +$dbh->do("ALTER TABLE `accountlines` ADD `accountlines_id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;"); -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 stephane.dela...@biblibre.com changed: What|Removed |Added Attachment #11374|0 |1 is obsolete|| --- Comment #22 from stephane.dela...@biblibre.com --- Created attachment 11922 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11922&action=edit proposed patch done (add _ on id's name) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Paul Poulain changed: What|Removed |Added CC||paul.poul...@biblibre.com --- Comment #21 from Paul Poulain --- mmm... i'm a little bit annoyed: we discussed on koha-devel about column naming conventions. The final decision was to use something_id (see http://wiki.koha-community.org/wiki/Coding_Guidelines#Database_Design) The column proposed here is accounlinesid (without _), which does not respect this guideline. However, the patch has been submitted before the rule has been defined. So, I think it's unfair to ask for an update. OTOH, it should not be too hard to add the _ before pushing the patch. Thus: Stephane, would you be OK to improve your patch -once again- ? If you say non, then i'll push it like this. But I would prefer that you say "yes" (RM speaking here, not the boss) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Mason James changed: What|Removed |Added Status|Signed Off |Passed QA --- Comment #20 from Mason James --- (In reply to comment #19) > Created attachment 11374 [details] > Bug 7671 : add a real primary key accountlinesid in accountlines > > Signed-off-by: Stéphane Delaune > Signed-off-by: Marc Veron > Signed-off-by: Chris Cormack patch looks good and applies to master 322a9c7fbbcf456084d1937f48345b3cdec058ce passing QA, nice patch - well done! mason@xen1:~/git/head$ koha-qa.pl * f6f6a46 Bug 7671 : add a real primary key accountlinesid in accountlines C4/Accounts.pm C4/Circulation.pm installer/data/mysql/kohastructure.sql installer/data/mysql/updatedatabase.pl koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt members/boraccount.pl members/pay.pl members/paycollect.pl members/printinvoice.pl - perlcritic-progressive tests... OK - perl -c syntax tests... OK - xt/tt_valid.t tests... OK - xt/author/valid-template.t tests... OK -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Chris Cormack changed: What|Removed |Added Attachment #10343|0 |1 is obsolete|| --- Comment #19 from Chris Cormack --- Created attachment 11374 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=11374&action=edit Bug 7671 : add a real primary key accountlinesid in accountlines Signed-off-by: Stéphane Delaune Signed-off-by: Marc Veron NOTE: After applying the patch I got following errors in members/pay.pl: Global symbol "$writeoff_sth" requires explicit package name Global symbol "$add_writeoff_sth" requires explicit package name Added to lines at the begin of members/pay.pl: our $writeoff_sth; our $add_writeoff_sth; Now the patch worked as expected. However I am not quite sure if signing off is OK in this situation. Marc Signed-off-by: Chris Cormack -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Chris Cormack changed: What|Removed |Added Status|Needs Signoff |Signed Off --- Comment #18 from Chris Cormack --- Before ++---+++--+-+-+-+---+---+-+---+--+--++ | borrowernumber | accountno | itemnumber | date | amount | description | dispute | accounttype | amountoutstanding | lastincrement | timestamp | notify_id | notify_level | note | manager_id | ++---+++--+-+-+-+---+---+-+---+--+--++ | 1 | 1 | NULL | 2012-08-06 | 2.00 | NULL | NULL| Pay | NULL | NULL | 2012-08-06 20:15:58 | 0 |0 | NULL | NULL | ++---+++--+-+-+-+---+---+-+---+--+--++ After patch +++---+++--+-+-+-+---+---+-+---+--+--++ | accountlinesid | borrowernumber | accountno | itemnumber | date | amount | description | dispute | accounttype | amountoutstanding | lastincrement | timestamp | notify_id | notify_level | note | manager_id | +++---+++--+-+-+-+---+---+-+---+--+--++ | 1 | 1 | 1 | NULL | 2012-08-06 | 2.00 | NULL| NULL| Pay | NULL | NULL | 2012-08-06 20:15:58 | 0 |0 | NULL | NULL | +++---+++--+-+-+-+---+---+-+---+--+--++ I then tested creating manual invoices, credits, reversing payments, paying, and writing off. The only thing I didnt test was overdue charges being added correctly. But as 2 others have already signed off on this. Marking signed off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #17 from Marc Véron --- I had the same error, see comment #8 Martin Renvoize then sent a new patch. I foound following solution from Markus Enger, see http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=1633#c4 - * Patch did not apply, giving this message: "fatal: cannot convert from UTF-8utf-8 to UTF-8". Removing 'Content-Type: text/plain; charset="utf-8"' from the patch by hand solved this. - Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Kyle M Hall changed: What|Removed |Added CC||k...@bywatersolutions.com --- Comment #16 from Kyle M Hall --- I cannot apply this patch. I receive this error: fatal: cannot convert from UTF-8utf-8 to UTF-8 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Marc Véron changed: What|Removed |Added Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Mason James changed: What|Removed |Added CC||m...@kohaaloha.com --- Comment #15 from Mason James --- (In reply to comment #14) > Created attachment 10343 [details] > [SIGNED-OFF] Bug 7671 : add a real primary key accountlinesid in accountlines > > Signed-off-by: Stéphane Delaune > Signed-off-by: Marc Veron > > NOTE: After applying the patch I got following errors in members/pay.pl: > Global symbol "$writeoff_sth" requires explicit package name > Global symbol "$add_writeoff_sth" requires explicit package name > > Added to lines at the begin of members/pay.pl: > our $writeoff_sth; > our $add_writeoff_sth; > > Now the patch worked as expected. > > However I am not quite sure if signing off is OK in this situation. QA comment... Stephane, can you (or someone else) sign-off on Marc's syntax fixes to your patch -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Marc Véron changed: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Marc Véron changed: What|Removed |Added Attachment #10283|0 |1 is obsolete|| --- Comment #14 from Marc Véron --- Created attachment 10343 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10343&action=edit [SIGNED-OFF] Bug 7671 : add a real primary key accountlinesid in accountlines Signed-off-by: Stéphane Delaune Signed-off-by: Marc Veron NOTE: After applying the patch I got following errors in members/pay.pl: Global symbol "$writeoff_sth" requires explicit package name Global symbol "$add_writeoff_sth" requires explicit package name Added to lines at the begin of members/pay.pl: our $writeoff_sth; our $add_writeoff_sth; Now the patch worked as expected. However I am not quite sure if signing off is OK in this situation. Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #13 from Martin Renvoize --- (In reply to comment #3) > during hackfest, functions involved in this patch have been modified. I > remade the patch Hi Stephanie, Quick question, i'm not seeing a remade patch in the above attachments.. your comment of a remade patch is a few days after the original patch was attached.. did you attach a new one.. Looking at Marc's comments i've got a feeling i rebased the old patch, not taking into account the function changes.. Might be easier for you to do that bit as it's originals your code? Although i'm happy to take a look if i get a chance. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #12 from Marc Véron --- - Patch applied. - Update database done. - Went to Home › Patrons › Account for (...) - Clicked Tab "Pay fines" Result: Global symbol "$writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 117. Global symbol "$add_writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 120. Global symbol "$writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 276. Global symbol "$writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 284. Global symbol "$add_writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 288. (Same errors as at the nd of my comment #6) - Switched back to Master to make sure that this is relatd to the patch - Went to Home › Patrons › Account for (...) - Clicked Tab "Pay fines" Result: No erros on branch Master -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Attachment #10260|0 |1 is obsolete|| --- Comment #11 from Martin Renvoize --- Created attachment 10283 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10283&action=edit [REBASED] Bug 7671 - add a real primary key "accountlinesid" in accountlines Rebased again... touch wood master doesn't move on again before we're signed off. Looking forward to Bug 7167 making it into master so this becomes less of an issue. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #10 from Marc Véron --- Sorry, Martin, but now I have error: patch failed: installer/data/mysql/updatedatabase.pl:5308 error: installer/data/mysql/updatedatabase.pl: patch does not apply Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Status|Signed Off |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Attachment #10260|[SIGNED] Bug 7671 - add a |Bug 7671 - add a real description|real primary key|primary key |"accountlinesid" in |"accountlinesid" in |accountlines|accountlines -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Attachment #10022|0 |1 is obsolete|| --- Comment #9 from Martin Renvoize --- Created attachment 10260 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10260&action=edit [SIGNED] Bug 7671 - add a real primary key "accountlinesid" in accountlines Hmm, That's strange, not seen that before. Just format-patched it again and the header seems correct this time. How odd.. New patch attached. Martin -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #8 from Marc Véron --- Tried to apply the patch and got: "fatal: cannot convert from UTF-8utf-8 to UTF-8" In the header of the patch the Content-Type appears twice: (...) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" (...) This was not the case in the previous patch, it was only: (...) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (...) So my guess is that the double Content-Type header is the reason for the error. Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Status|Patch doesn't apply |Needs Signoff CC||martin.renvoize@ptfs-europe ||.com Version|unspecified |master -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Martin Renvoize changed: What|Removed |Added Attachment #8280|0 |1 is obsolete|| --- Comment #7 from Martin Renvoize --- Created attachment 10022 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=10022&action=edit Bug 7671 - add a real primary key "accountlinesid" in accountlines Rebased against master... -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Chris Cormack changed: What|Removed |Added Status|Needs Signoff |Patch doesn't apply -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Marc Véron changed: What|Removed |Added Blocks||7985 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #6 from Marc Véron --- Hi Chris and Stephane, Sorry, I was not sure about signing off, and then I missed the Email notification of Chris' comment. :( In the meantime I already deleted the branch bug_7671bug. Now I created a new branch bug_7671 and tried to apply the patch again, resultin in a "Does not apply" with: -- Applying: Bug 7671 : add a real primary key accountlinesid in accountlines /usr/share/kohaclone/.git/rebase-apply/patch:321: trailing whitespace. $usth->execute($data->{'accountlinesid'}); # We might be adjusting an a ccount for some OTHER borrowernumber now. Not the one we passed in. error: patch failed: installer/data/mysql/updatedatabase.pl:4765 error: installer/data/mysql/updatedatabase.pl: patch does not apply error: patch failed: members/pay.pl:86 error: members/pay.pl: patch does not apply Patch failed at 0001 Bug 7671 : add a real primary key accountlinesid in account lines When you have resolved this problem run "git am --resolved". If you would prefer to skip this patch, instead run "git am --skip". To restore the original branch and stop patching run "git am --abort". Patch left in /tmp/proposed-patch-UvbvKO.patch -- I tried to resolve it, first I did: git am --abort git am -iu3 /tmp/proposed-patch-UvbvKO.patch Then I followed the steps in http://wiki.koha-community.org/wiki/Resolve_Merge_Issues to resolve ...but I think I messed something up, because I get Errors doing a payment: Global symbol "$writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 117. Global symbol "$add_writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 120. Global symbol "$writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 276. Global symbol "$writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 284. Global symbol "$add_writeoff_sth" requires explicit package name at /usr/share/kohaclone/members/pay.pl line 288. Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Chris Cormack changed: What|Removed |Added CC||ch...@bigballofwax.co.nz --- Comment #5 from Chris Cormack --- Hi Marc It does need another signoff (Stephane wrote it). But if you have tested it, you should be able to sign off on it :) Chris -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Marc Véron changed: What|Removed |Added CC||ve...@veron.ch --- Comment #4 from Marc Véron --- Stephane, I added (manualy) the primary key to my database an tested fines payment, no errores encountered. The attachment states: Signed-off-by: Stéphane Delaune Could it be that you forgot to switch te status from Needs Signoff to Signed Off? Or should the patch be signed off again? Marc -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Katrin Fischer changed: What|Removed |Added Status|ASSIGNED|Needs Signoff CC||katrin.fisc...@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 stephane.dela...@biblibre.com changed: What|Removed |Added Status|Needs Signoff |ASSIGNED --- Comment #3 from stephane.dela...@biblibre.com --- during hackfest, functions involved in this patch have been modified. I remade the patch -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 Leila changed: What|Removed |Added CC||leila.ar...@hotmail.fr --- Comment #2 from Leila --- Hello Can't be tested with the sandbox : need to update the database. Sorry -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 stephane.dela...@biblibre.com changed: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 --- Comment #1 from stephane.dela...@biblibre.com --- Created attachment 8280 --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=8280&action=edit proposed patch -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 7671] add a real primary key "accountlinesid" in accountlines
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7671 stephane.dela...@biblibre.com changed: What|Removed |Added Summary|add a real primary key "id" |add a real primary key |in accountlines |"accountlinesid" in ||accountlines -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/