[Koha-bugs] [Bug 23166] New: Simplify code related to orders in catalogue/*detail.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 20 04:34:50 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23166

            Bug ID: 23166
           Summary: Simplify code related to orders in
                    catalogue/*detail.pl
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: enhancement
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: jonathan.druart at bugs.koha-community.org
          Reporter: jonathan.druart at bugs.koha-community.org
        QA Contact: testopia at bugs.koha-community.org
        Depends on: 23084, 9780
  Target Milestone: ---

Since bug 9780 we are the ability to alert the librarian when a record which
has been ordered will be deleted.
Then the code to handle the alert has been copied to other catalogue/*detail.pl
script, as the JS check is in the toolbar.

This code is really unnecessary complicated and sometime simply not necessary.
It could be replaced with Koha::Acquisition::Orders->search and make it more
readable.

(found it working on bug 23084, so writing it on top of it).


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9780
[Bug 9780] Restrict the right to suppress a record used in some order
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23084
[Bug 23084] Replace grep {^$var$} with grep {$var eq $_}
-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list