Web Client - Copy Templates - Floating drop down is broken

Bug #1759327 reported by Christine Burns
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Undecided
Unassigned
3.0
Fix Released
Undecided
Unassigned

Bug Description

EG 3.0.3

Admin->Local Admin->Volume/Copy Template Editor
or
Retrieve copy->Edit Items->Copy Templates

In the copy template editor the "Floating" drop down menu is broken. [no entries display but entries do exist]

The "Floating" drop down menu in the copy editor works as expected.

I have included a .jpg which shows examples of the Floating drop down in the copy editor (Good) and the Floating drop down in the copy template editor (Bad)

Revision history for this message
Christine Burns (christine-burns) wrote :
Revision history for this message
Elaine Hardy (ehardy) wrote :

We see a problem with the menu in copy editor as well. See https://bugs.launchpad.net/evergreen/+bug/1744080

Changed in evergreen:
status: New → Confirmed
Revision history for this message
Janet Schrader (jschrader) wrote :

This is true for CMARS also so floating selection cannot be added to templates.

Revision history for this message
Kyle Huckins (khuckins) wrote :

I've pushed up a branch here: http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/khuckins/lp1759327-volcopy-populate-floating-dropdown

The issue ended up being that while the information existed in the parent scope, a function call wasn't being made in the directive for eg-vol-template. After adding it, everything appears to work as expected.

Changed in evergreen:
assignee: nobody → Kyle Huckins (khuckins)
assignee: Kyle Huckins (khuckins) → nobody
tags: added: pullrequest
Changed in evergreen:
milestone: none → 3.2-beta
assignee: nobody → Jason Stephenson (jstephenson)
Revision history for this message
Jeanette Lundgren (jlundgren) wrote :

Added branch to 3.0.7 test server.

Admin->Local Admin->Volume/Copy Template Editor

After patch the floating drop down now opens and the entries display (see image attached). The floating field now works the same as the copy editor.

Thanks Kyle!

I have tested this code and consent to signing off on it with my name, Jeanette Lundgren and my email address, <email address hidden>.

tags: added: signedoff
Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
Revision history for this message
Jason Stephenson (jstephenson) wrote :

One thing I've noticed with this branch applied is that once you choose a floating value for the template and save the template, you cannot later remove the floating value. That is, if a floating value is selected, then no blank entry appears in the drop down and only existing floating values can be chosen.

I don't know if that is a problem or not, but I think it is worth mentioning in case others consider it to be a problem.

Revision history for this message
Christine Burns (christine-burns) wrote :
Revision history for this message
Kyle Huckins (khuckins) wrote :

I should note that without the branch, making a selection on floating when you've retrieved a copy functions in the same way, with no blank selection available after making a selection. It may be worth adding a blank option on the tt2 if anyone considers it an issue.

Revision history for this message
Jeanette Lundgren (jlundgren) wrote :
Revision history for this message
Jeanette Lundgren (jlundgren) wrote :

It looks like there is a pullrequest on the related bug (copy editor - add remove floating option) that essentially adds a blank value, but drop down option says remove floating.

It would be good to apply consistent behavior here in the copy template editor. Kyle is this easily done?

Revision history for this message
Jason Stephenson (jstephenson) wrote :

Jeanette,

It would be trivial to add a similar option. My question was if it was desirable. Since it sounds like it is, I can add it if Kyle is busy on other things. I'll make a similar change to what was done by Jeff Davis on bug 1749996 and put these on my test vm for bug squashing week.

Jason

Changed in evergreen:
assignee: nobody → Jason Stephenson (jstephenson)
Revision history for this message
Jason Stephenson (jstephenson) wrote :

Actually, it looks like the combination of Jeff Davis' branch on bug 1749996 and this branch will resolve the whole thing and there is no need to make changes to this branch. I'll take that approach before attempting any changes, myself.

Revision history for this message
Christine Burns (christine-burns) wrote :

We have tested a combination of these two bugs fixes and I can confirm they resolve all issues.

Thanks everyone!!

Revision history for this message
Elaine Hardy (ehardy) wrote :

It is definitely desirable to be able to remove a floating option once set in the drop down menu. It could be set in error or the floating relationship could end.

Revision history for this message
Janet Schrader (jschrader) wrote :

I agree with Elaine that there needs to the ability to remove a floating option. I think the ability to remove an option should also be available for "Age-based hold protection", "Loan duration", and "Fine level" too. If one of these is accidentally chosen there is no way to remove it. "Circulation modifier" has the option of <NONE> so why not these four other fields.

Revision history for this message
Jason Stephenson (jstephenson) wrote :

I have tested Kyle's branch also with Jeff Davis' branch on bug 1749996, and the issues with the floating group in copy templates are resolved for me. I have pushed Kyle's branch to master, rel_3_1, and rel_3_0.

I will make a new bug based on Janet's comments in comment #15.

Thanks, everyone!

Changed in evergreen:
assignee: Jason Stephenson (jstephenson) → nobody
status: Confirmed → Fix Committed
no longer affects: evergreen/3.1
Changed in evergreen:
milestone: 3.2-beta → 3.1.2
status: Fix Committed → Fix Released
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.