]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#2036840: fix incorrectly initialized fund dropdown in legacy acq
authorGalen Charlton <gmc@equinoxOLI.org>
Wed, 20 Sep 2023 21:49:06 +0000 (17:49 -0400)
committerJane Sandberg <js7389@princeton.edu>
Wed, 27 Sep 2023 02:55:41 +0000 (19:55 -0700)
commit394679926ea69bc6d863ebb1bb41d2435c3e00a5
tree89fa2540998d6f03f0f07d7e3ec5a3262fb991b3
parent7234c637778da729061ee61f9327a95b4d80864e
LP#2036840: fix incorrectly initialized fund dropdown in legacy acq

This patch fixes an issue where the selector for editing the fund
of a line item copy can fail to be properly initialized if you are
doing a legacy search for line items (as opposed to doing a legacy
search for a purchase order, then navigating to the line item).

To test
-------
[1] Create a line item (attached to a PO) with at least one copy
    that has a fund associated with it. Ensure that the line item
    remains in an editable state such as 'new'.
[2] In the legacy search interface for acquisitions, do a line item
    search (not a PO search) to bring up the line item.
[3] Click the copies link on the line item.
[4] Note that the fund drop-down for that line item does not
    have the assigned fund selected, nor does it list any funds.
    Note that attempt to change the value via the batch updater's
    fund drop-down doesn't work. Note that attempting to save
    changes to the line item copy (e.g., to the notes field) doesn't
    work.
[5] Apply the patch and repeat steps 2 through 4. This time, the fund
    selector should be correctly initialized and functioning and that
    changes to the line item copy can be saved.

Sponsored-by: Evergreen Indiana
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/web/js/ui/default/acq/search/unified.js