Item details page - Remove from basket

Bug #2093791 reported by Terran McCanna
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Confirmed
High
Unassigned

Bug Description

Evergreen 3.14 -

On the item details page, the basket options on the right hand actions menu aren't working right.

If the item is not in a basket, the "Remove from basket" option is appearing instead of the "Add to basket option."

If the item IS in a basket, the "Remove from basket" option disappears.

Revision history for this message
Jane Sandberg (sandbergja) wrote :

Confirmed on today's main.

Changed in evergreen:
status: New → Confirmed
tags: added: opac regression
Changed in evergreen:
assignee: nobody → Terran McCanna (tmccanna)
Revision history for this message
Terran McCanna (tmccanna) wrote :

In the process of fixing this, I also found that the View Basket hasn't been hiding/disappearing as intended either. The intention of the original code was to show the View Basket button when there is at least 1 item in the basket and hide it when there are no items in the basket yet. My proposed fix addresses that as well as the Add/Remove buttons.

(And thanks to Stephanie for pointing me to the JavaScript instead of trying to figure out how to do it in Perl!)

Proposed patch at:

https://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/mccanna/lp2093791_opac_basket_buttons

tags: added: pullrequest
Changed in evergreen:
assignee: Terran McCanna (tmccanna) → nobody
milestone: none → 3.15-beta
importance: Undecided → High
Revision history for this message
Terran McCanna (tmccanna) wrote :

(bumped to High since the regression broke patron functionality)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.