[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-05-23 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Lucas Gass  changed:

   What|Removed |Added

 Blocks||36459


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36459
[Bug 36459] Backdating checkouts on circ/circulation.pl not working properly
-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-05-22 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Fridolin Somers  changed:

   What|Removed |Added

 CC||fridolin.som...@biblibre.co
   ||m
 Status|Pushed to main  |Pushed to stable
 Version(s)|24.05.00|24.05.00,23.11.06
released in||

--- Comment #8 from Fridolin Somers  ---
Pushed to 23.11.x for 23.11.06

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-12 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

--- Comment #7 from Katrin Fischer  ---
Pushed for 24.05!

Well done everyone, thank you!

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-12 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Katrin Fischer  changed:

   What|Removed |Added

 Version(s)||24.05.00
released in||
 Status|Passed QA   |Pushed to master

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-11 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Emily Lamancusa  changed:

   What|Removed |Added

 QA Contact|testo...@bugs.koha-communit |emily.lamancusa@montgomeryc
   |y.org   |ountymd.gov
 CC||emily.lamancusa@montgomeryc
   ||ountymd.gov
 Status|Signed Off  |Passed QA

--- Comment #6 from Emily Lamancusa  ---
Nice catch! Passing QA

It looks like the error David found is unrelated and comes from our keydown
event handling in shortcut.js...we check both e.keyCode and e.which to
determine which key was pressed, but (according to a bit of googling) they
don't play nice with special keys. They're also both deprecated D: (though it
looks like no one has dropped support for them yet) Filing bug bug 36580 to put
it on the radar.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-11 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Emily Lamancusa  changed:

   What|Removed |Added

 Attachment #164440|0   |1
is obsolete||

--- Comment #5 from Emily Lamancusa  ---
Created attachment 164734
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164734=edit
Bug 36494: Flatpickr error on checkout page if the patron is blocked from
checking out

This patch add some error-handling to the recent change to
circulation.tt where we handle dates and on-site checkouts. This
prevents an error in the console when the patron is blocked and the
"specify due date" field is hidden.

To test, apply the patch and make sure OnSiteCheckouts is enabled.

- Go to Circulation and check out to a patron.
- Under the restrictions tab, add a manual restriction.
- When the page reloads and the checkout form is no longer visible,
  confirm that there is no error in the browser console.

Confirm that the Bug 18885 test plan still works.

Signed-off-by: David Nind 
Signed-off-by: Emily Lamancusa 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-04 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

David Nind  changed:

   What|Removed |Added

 CC||da...@davidnind.com

--- Comment #4 from David Nind  ---
Testing notes:

1. I could also generate the console errors by going to Circulation > Check
out[1]

2. I also encounter thus error, but maybe not related to this bug(?) - this was
only in Chrome-based browsers, not Firefox:
   . Patch applied
   . Add a restriction to a patron ([any patron] > Check out > Restrictions tab
(for the comment, add the text 'Test')
   . Remove the restriction
   . Add a restriction again, this time use the 'autocomplete'/prompt that
comes up with previously entered values for comment field and select 'Test'
again
  . I get this error (I couldn't always reproduce it):
shortcut_23.1200015.js:46 Uncaught ReferenceError: code is not defined
at HTMLDocument.func (shortcut_23.1200015.js:46:49)


[1] Console errors displayed in Ciruclation > Check out:

jQuery.Deferred exception: Cannot read properties of null (reading
'_flatpickr') TypeError: Cannot read properties of null (reading '_flatpickr')
at toggle_onsite_checkout
(http://127.0.0.1:8081/cgi-bin/koha/circ/circulation.pl:1923:74)
at HTMLDocument.
(http://127.0.0.1:8081/cgi-bin/koha/circ/circulation.pl:1955:13)
at e
(http://127.0.0.1:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_23.1200015.js:2:30038)
at t
(http://127.0.0.1:8081/intranet-tmpl/lib/jquery/jquery-3.6.0.min_23.1200015.js:2:30340)
undefined

Uncaught TypeError: Cannot read properties of null (reading '_flatpickr')
at toggle_onsite_checkout (circulation.pl:1923:74)
at HTMLDocument. (circulation.pl:1955:13)
at e (jquery-3.6.0.min_23.1200015.js:2:30038)
at t (jquery-3.6.0.min_23.1200015.js:2:30340)

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-04 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

David Nind  changed:

   What|Removed |Added

 Attachment #164286|0   |1
is obsolete||

--- Comment #3 from David Nind  ---
Created attachment 164440
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164440=edit
Bug 36494: Flatpickr error on checkout page if the patron is blocked from
checking out

This patch add some error-handling to the recent change to
circulation.tt where we handle dates and on-site checkouts. This
prevents an error in the console when the patron is blocked and the
"specify due date" field is hidden.

To test, apply the patch and make sure OnSiteCheckouts is enabled.

- Go to Circulation and check out to a patron.
- Under the restrictions tab, add a manual restriction.
- When the page reloads and the checkout form is no longer visible,
  confirm that there is no error in the browser console.

Confirm that the Bug 18885 test plan still works.

Signed-off-by: David Nind 

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-04 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

David Nind  changed:

   What|Removed |Added

 Status|Needs Signoff   |Signed Off

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

--- Comment #2 from Owen Leonard  ---
Created attachment 164286
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=164286=edit
Bug 36494: Flatpickr error on checkout page if the patron is blocked from
checking out

This patch add some error-handling to the recent change to
circulation.tt where we handle dates and on-site checkouts. This
prevents an error in the console when the patron is blocked and the
"specify due date" field is hidden.

To test, apply the patch and make sure OnSiteCheckouts is enabled.

- Go to Circulation and check out to a patron.
- Under the restrictions tab, add a manual restriction.
- When the page reloads and the checkout form is no longer visible,
  confirm that there is no error in the browser console.

Confirm that the Bug 18885 test plan still works.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Owen Leonard  changed:

   What|Removed |Added

   Patch complexity|--- |Trivial patch
 Status|ASSIGNED|Needs Signoff

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

--- Comment #1 from Owen Leonard  ---
The problem can also be seen if the SpecifyDueDate preference is disabled.

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/


[Koha-bugs] [Bug 36494] Flatpickr error on checkout page if the patron is blocked from checking out

2024-04-02 Thread bugzilla-daemon--- via Koha-bugs
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36494

Owen Leonard  changed:

   What|Removed |Added

Summary|Flatpickr error on checkout |Flatpickr error on checkout
   |pages if the patron is  |page if the patron is
   |blocked from checking out   |blocked from checking out

-- 
You are receiving this mail because:
You are watching all bug changes.
___
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/