Commit Graph

43332 Commits

Author SHA1 Message Date
Wainui Witika-Park 0d062f79ac Revert "Bug 31412: Add focus to 'name' on SMTP Servers"
This reverts commit 48f09bbc6b.
2023-03-15 13:32:31 +13:00
Wainui Witika-Park a0e0b7efe9 Revert "Bug 31540: Exclude expired holds from the reminder job"
This reverts commit 154af0fae7.
2023-03-15 13:30:26 +13:00
Wainui Witika-Park 3a7ed07546 Revert "Bug 31593: Remove Test::DBIx::Class from Context.t"
This reverts commit 9f441c3976.
2023-03-15 13:29:39 +13:00
Wainui Witika-Park bcc225b023 Revert "Bug 30517: Translation breaks editing parent type circulation rule fix"
This reverts commit ff7176bbda.
2023-03-15 13:28:55 +13:00
Wainui Witika-Park d187b28395 Revert "Bug 31559: Staff results page doesn't always use up full available screen width"
This reverts commit b2c138252c.
2023-03-15 13:27:56 +13:00
Wainui Witika-Park 9aab8cf39f Revert "Bug 31643: Require only edit_catalogue, not full cataloging"
This reverts commit e77fe4e5df.
2023-03-15 13:26:44 +13:00
Wainui Witika-Park d165b018a1 Revert "Bug 29671: Dropbox mode is unchecked after check in confirm on item with Materials specified"
This reverts commit 30554ed9e5.
2023-03-15 13:26:08 +13:00
Wainui Witika-Park c8dc471409 Revert "Bug 20457: Overdue and pre-overdue cronjobs not skipping phone notices"
This reverts commit 23e86e130d.
2023-03-15 13:24:53 +13:00
Wainui Witika-Park 953daf646c Revert "Bug 31685: Replace current_article_requests_count in opac-user"
This reverts commit 469300d67a.
2023-03-15 13:23:46 +13:00
Wainui Witika-Park 4549b07195 Revert "Bug 31587: Regression tests"
This reverts commit 32b44d9c9b.
2023-03-15 13:22:00 +13:00
Wainui Witika-Park e3ec13e8a4 Revert "Bug 31587: Basket not accessible from ACQORDER notice"
This reverts commit d45ea439bc.
2023-03-15 13:21:50 +13:00
Wainui Witika-Park e11ff1de72 Merge branch '21.05.x' of git.koha-community.org:Koha-community/Koha into 21.05.x-rmaint 2023-01-27 12:37:18 +13:00
Wainui Witika-Park faef448491 Revert "Bug 31908: Replace an exit by a safe_exit in Auth.pm L1314"
This reverts commit b160979234.
2023-01-27 12:22:29 +13:00
Wainui Witika-Park 305ec14d91 Revert "Bug 31908: Add a test to show issue"
This reverts commit 2427d773a9.
2023-01-27 12:22:21 +13:00
Wainui Witika-Park 60e836f645 Revert "Bug 31908: Resolve second login with another userid"
This reverts commit 68cde441b3.
2023-01-27 12:22:14 +13:00
Wainui Witika-Park 38955d55be Revert "Bug 31908: Add selenium tests"
This reverts commit 611780ed09.
2023-01-27 12:22:08 +13:00
Wainui Witika-Park 27dcf8facd Revert "Bug 32208: Extend Auth.t"
This reverts commit adc9fd4fd8.
2023-01-27 12:22:00 +13:00
Wainui Witika-Park 6f5275d8e4 Revert "Bug 32208: Adjust Auth.pm for relogin without perms"
This reverts commit 7db145f153.
2023-01-27 12:21:54 +13:00
Wainui Witika-Park 80f48b6359 Update release notes for 21.05.22 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:20:25 +13:00
Wainui Witika-Park 8f91d48b6b Increment version for 21.05.22 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:20:14 +13:00
Wainui Witika-Park 5b16e28d53 Fix translations for Koha 21.05.22
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:20:01 +13:00
Koha translators c5e40ea6db Translation updates for Koha 21.05.22 2023-01-27 12:06:43 +13:00
Marcel de Rooy 14099582fe Bug 32208: Adjust Auth.pm for relogin without perms
If a second login on top of a current session fails on
permissions, we should not grant access without context.

Test plan:
[1] Run t/db../Auth.t, it should pass now.
[2] Test interface with/without this patch:
    Pick two users: A has perms, B has not.
    Put two staff login forms in two tabs.
    Login as A in tab1. Login as B in tab2.
    Without this patch, B gets in and crashes.
    With this patch, B does not get in ('no perms').
    Bonus: Go to opac if on same domain. You are still
    logged in as B.

NOTE: I added a FIXME here, since you could argue about filling
the session info or otoh deleting the session. We present an
authorization failure; people may not realize that they are
still logged in (see test plan - bonus).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:06:11 +13:00
Marcel de Rooy 11a853a1c1 Bug 32208: Extend Auth.t
Test plan:
Without follow-up patch, Auth.t should fail:
    not ok 5 - No permission response
    not ok 6 - checkauth returned failure

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:05:52 +13:00
Jonathan Druart d08164a804 Bug 31908: Add selenium tests
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:05:13 +13:00
Marcel de Rooy 885d07a17a Bug 31908: Resolve second login with another userid
Somewhere the line undef $userid got removed.
We need it to resolve the second login situation.

Test plan:
Login in staff with user missing privileges.
On the login form login again with another staff user.
Note that you do no longer crash.

Run t/db../Auth.t
Run t/db../Koha/Auth/TwoFactorAuth.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:05:03 +13:00
Marcel de Rooy 9eaba374d2 Bug 31908: Add a test to show issue
Test plan:
Without next patch, run Auth.t.
Should fail now before next patch resolves problem:
    not ok 2 - Login of patron2 approved
    ok 3 - Did not return previous session ID
    not ok 4 - New session ID not empty

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:04:53 +13:00
Marcel de Rooy c7a0d23d46 Bug 31908: Replace an exit by a safe_exit in Auth.pm L1314
No change in user experience. But since we can mock safe_exit,
we can enhance test results.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2023-01-27 12:04:40 +13:00
Wainui Witika-Park b0437dc643 Revert "Bug 31908: Replace an exit by a safe_exit in Auth.pm L1314"
This reverts commit b160979234.
2023-01-20 15:44:32 +13:00
Wainui Witika-Park 2f5e01b646 Revert "Bug 31908: Add a test to show issue"
This reverts commit 2427d773a9.
2023-01-20 15:44:04 +13:00
Wainui Witika-Park 14ecc0f45f Revert "Bug 31908: Resolve second login with another userid"
This reverts commit 68cde441b3.
2023-01-20 15:43:45 +13:00
Wainui Witika-Park 2f35981159 Revert "Bug 31908: Add selenium tests"
This reverts commit 611780ed09.
2023-01-20 15:43:14 +13:00
Wainui Witika-Park 2eb1c842b1 Revert "Bug 32208: Extend Auth.t"
This reverts commit adc9fd4fd8.
2023-01-20 15:42:59 +13:00
Wainui Witika-Park 4c21d3f49f Revert "Bug 32208: Adjust Auth.pm for relogin without perms"
This reverts commit 7db145f153.
2023-01-20 15:42:45 +13:00
Wainui Witika-Park 0698927eee Update release notes for 21.05.22 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-23 15:47:50 +13:00
Wainui Witika-Park 703c2d1cb5 Increment version for 21.05.22 release
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-23 14:43:15 +13:00
Wainui Witika-Park 6908a0f879 Fix translations for Koha 21.05.22
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-23 14:40:10 +13:00
Wainui Witika-Park 205168769f Merge remote-tracking branch 'translate/21.05.22-translate-20221222' into 21.05.x-security 2022-12-23 13:53:09 +13:00
Koha translators d465e18982 Translation updates for Koha 21.05.22 2022-12-22 21:29:43 -03:00
Marcel de Rooy 7db145f153 Bug 32208: Adjust Auth.pm for relogin without perms
If a second login on top of a current session fails on
permissions, we should not grant access without context.

Test plan:
[1] Run t/db../Auth.t, it should pass now.
[2] Test interface with/without this patch:
    Pick two users: A has perms, B has not.
    Put two staff login forms in two tabs.
    Login as A in tab1. Login as B in tab2.
    Without this patch, B gets in and crashes.
    With this patch, B does not get in ('no perms').
    Bonus: Go to opac if on same domain. You are still
    logged in as B.

NOTE: I added a FIXME here, since you could argue about filling
the session info or otoh deleting the session. We present an
authorization failure; people may not realize that they are
still logged in (see test plan - bonus).

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:32:48 +13:00
Marcel de Rooy adc9fd4fd8 Bug 32208: Extend Auth.t
Test plan:
Without follow-up patch, Auth.t should fail:
    not ok 5 - No permission response
    not ok 6 - checkauth returned failure

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:32:36 +13:00
Jonathan Druart 611780ed09 Bug 31908: Add selenium tests
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:26:37 +13:00
Marcel de Rooy 68cde441b3 Bug 31908: Resolve second login with another userid
Somewhere the line undef $userid got removed.
We need it to resolve the second login situation.

Test plan:
Login in staff with user missing privileges.
On the login form login again with another staff user.
Note that you do no longer crash.

Run t/db../Auth.t
Run t/db../Koha/Auth/TwoFactorAuth.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:26:20 +13:00
Marcel de Rooy 2427d773a9 Bug 31908: Add a test to show issue
Test plan:
Without next patch, run Auth.t.
Should fail now before next patch resolves problem:
    not ok 2 - Login of patron2 approved
    ok 3 - Did not return previous session ID
    not ok 4 - New session ID not empty

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:25:28 +13:00
Marcel de Rooy b160979234 Bug 31908: Replace an exit by a safe_exit in Auth.pm L1314
No change in user experience. But since we can mock safe_exit,
we can enhance test results.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:24:09 +13:00
Kyle Hall d45ea439bc Bug 31587: Basket not accessible from ACQORDER notice
The parameter "aqbasket" is passed to GetPreparedLetter, but is always undefined for the notice ACQORDER.

Test Plan:
1) Set your ACQORDER notice content to:
   ***[% basket %]***
2) Set up a vendor with an email, set contact for email so the "E-mail
   order" button shows on a basket for that vendor
3) E-mail the basket
4) Note the email contents are "******"
5) Apply this patch
6) Restart all the things!
7) Email the basket again
8) Note the content looks something like:
   ***Koha::Acquisition::Basket=HASH(0x55870acd96e0)***

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c89e886b6d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit aceaca5d29)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:09:36 +13:00
Tomas Cohen Arazi 32b44d9c9b Bug 31587: Regression tests
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit fc7cc1467d)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit a09d225815)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-20 15:08:49 +13:00
Marcel de Rooy 469300d67a Bug 31685: Replace current_article_requests_count in opac-user
Fixing the "( total)" in the caption of the table.

The tt var should be replaced now by current_article_requests.size.
Note that current_article_requests is an array now (from as_list).
We cannot use .count since it is no Koha object.

Test plan:
Submit a few article requests.
Check OPAC account page, and verify that both totals are fine now.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 5db2163857)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9b7b41be1f)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>

Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-15 12:46:45 +00:00
Kyle M Hall 23e86e130d Bug 20457: Overdue and pre-overdue cronjobs not skipping phone notices
The overdue and pre-overdue cron scripts are not skipping the generation of phone notices. This causes many phone notices to be created that will always be left at 'pending' as the Talking Tech outbound script creates its own phone notices and puts them in the message queue.

Test Plan:
1) Enable Talking Tech
2) Enable predue and overdue notice phone transports for a patron
3) Generate overdues and predues, notice phone notices are generated
4) Apply the patch
5) Repeat steps 2-3
6) Note phone notices are not generated

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bf6bbc29a0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 2a14f470f7)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>

Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-15 12:08:37 +00:00
Christophe Torin 30554ed9e5 Bug 29671: Dropbox mode is unchecked after check in confirm on item with Materials specified
Suggested patch

steps to reproduce :

1) Enable System preference CirConfirmItemParts
2) Go to Circulation > Check in
3) Enable Dropbox mode (Book drop mode) in the Checkin settings
4) Enter a barcode of an item having the 'Materials specified' field
   not empty
5) A Popup is shown, click the confirm button
6) The Dropbox mode (Book drop mode) is now unchecked, but should stay
   checked.

In the template, the modal window lacks the dropboxmode input, so that
it stays on the next page. I attached a patch with my suggested correction.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Géraud <geraud.frappier@inlibro.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e024b6fb52)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4c0025a81c)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>

Signed-off-by: Wainui Witika-Park <wainuiwitikapark@catalyst.net.nz>
2022-12-15 12:06:19 +00:00