[Bug 15835] New: Koha::Object does not save shanges
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 Bug ID: 15835 Summary: Koha::Object does not save shanges Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: gmcharlt@gmail.com Reporter: srdjan@catalyst.net.nz QA Contact: testopia@bugs.koha-community.org $object->set({column => $val})->store does not work. DB trace: BEGIN WORK COMMIT On the other hand, $object->_result()->update({column => $val}) does work. DB trace: BEGIN WORK UPDATE borrowers SET overdrive_auth_token = ? WHERE ( borrowernumber = ? ): XXX, YYY COMMIT -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kyle.m.hall@gmail.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@bugs.koha-c | |ommunity.org, | |katrin.fischer@bsz-bw.de -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 Julian Maurice <julian.maurice@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julian.maurice@biblibre.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 Marc Véron <veron@veron.ch> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Koha::Object does not save |Koha::Object does not save |shanges |changes CC| |veron@veron.ch -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 --- Comment #1 from Jonathan Druart <jonathan.druart@bugs.koha-community.org> --- Srdjan, what did you try exactly? I have tried the following: use Modern::Perl; use Koha::Borrowers; my $p = Koha::Borrowers->find(10); $p->set({firstname => 'my new firstname', surname => 'my new surname' })->store; then MariaDB [koha]> select firstname, surname from borrowers where borrowernumber=10; And I got my updated values. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15835 Srdjan Jankovic <srdjan@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Srdjan Jankovic <srdjan@catalyst.net.nz> --- Well I cannot make it happen now myself. Who knows what was going on... -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org