Bug 36458 - Koha::Item->return_claim method name is not correct
Summary: Koha::Item->return_claim method name is not correct
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 28854
Blocks:
  Show dependency treegraph
 
Reported: 2024-03-28 14:54 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2024-03-28 15:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2024-03-28 14:54:28 UTC

    
Comment 1 Tomás Cohen Arazi (tcohen) 2024-03-28 14:58:44 UTC
This method should be named something like 'newest_unresolved_claim'. I leave it to others to pick the right name. But as-is it is ambiguous.
Comment 2 Tomás Cohen Arazi (tcohen) 2024-03-28 15:24:26 UTC
or maybe.. `$item->return_claims->get_newest_active`.