https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14224 --- Comment #16 from Aleisha Amohia <aleishaamohia@hotmail.com> --- (In reply to Jonathan Druart from comment #14)
By using Koha::Issue I meant using it as an object (so no need to add you subroutine to the module). For instance: $issue = Koha::Issue::GetIssue({issue_id => $issue_id}); could be $issue = Koha::Issues->find( $issue_id); and $issue becomes a Koha::Object-based object, not an hashref
SetIssueNote($issue_id, $clean_note) could be Koha::Issues->find( $issue_id )->set({ notedate => dt_from_string, note = $clean_note })->store;
etc.
Hi Jonathan, I'm having issues using Koha::Issues->find($issue_id). I'm receiving this error: Can't locate object method "_new_from_dbic" via package "Koha::Issue" at /home/vagrant/kohaclone/Koha/Objects.pm line 87 Do you know what could be causing this? Aleisha -- You are receiving this mail because: You are watching all bug changes.