Koha-clms/svc
Tomas Cohen Arazi 72a477c43f Bug 29771: Remove trivial cases
I squashed the patches because they are too trivial to have a test plan.
Or it is too much work to write the test plan for such trivial cases. I
leave the original commit messages just in case.

Generally, this are all cases in which CGI::param is being called in a
trivially identifiable _list context_. i.e. they are assigned to a
@variable.

I left one case out on purpose: admin/auth_subfields_structure.pl

Paul introduced this:

my @kohafield = ''.$input->param('kohafield');
and then:
my $kohafield = $kohafield[$i];

My intuition says it is forcing scalar context on the first assignment
so the list contains a single element and then inside the loop some
$kohafield assignments should lead to undef, and even warnings. I leave
it for a separate patch because it is not that easy testable and is a
sensible area.

Bug 29771: Remove warning from  acqui/finishreceive.pl

This patch removes a warning that shows when receiving.

To test:
1. Do the acq workflow up to the receive step.
2. Once you choose the items and click on Finish
=> FAIL: There's a warning in the logs
3. Revert receipt
4. Apply this patch
5. Receive
=> SUCCESS: No more warnings
6. Sign off :-D

Bug 29771: Remove warning from svc/members/add_to_list

To test:
1. Run:
   $ tail -f /var/log/koha/kohadev/*-error.log
2. Generate a patron list
3. Perform a patron search that gives you a few
4. Select some, and choose to add them to the list
=> FAIL: The logs show the infamous warn:
CGI::param called in list context from /kohadevbox/koha/svc/members/add_to_list
5. Apply this patch
6. Restart plack and repeat 4
=> SUCCESS: No warn!
7. Sign off :-D

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 1cfa7e3845)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-04-25 19:44:44 +00:00
..
cataloguing Bug 11299: Adjust call to check_cookie_auth 2021-01-14 14:03:49 +01:00
club Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
config Bug 29056: Remove the demo functionality leftovers 2021-10-08 08:01:56 -04:00
hold Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
letters Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
mana Bug 27061: Remove duplicate permission check in svc/mana/search 2021-04-30 17:07:32 +02:00
members Bug 29771: Remove trivial cases 2022-04-25 19:44:44 +00:00
records Bug 24663: Force authentication in svc/records/preview (?) 2020-09-03 10:40:35 +02:00
virtualshelves Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
article_request Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
authentication Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
authorised_values Bug 25728: Use a svc script instead of the REST API endpoint 2020-08-24 11:19:03 +02:00
barcode Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bib Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bib_framework Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bib_profile Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkin Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkout_notes Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkouts Bug 29931: [21.05.x] Check cookie status before continuing 2022-03-09 15:09:19 +00:00
convert_report Bug 24663: Remove authnotrequired if set to 0 2020-09-03 10:40:35 +02:00
cover_images Bug 29771: Remove trivial cases 2022-04-25 19:44:44 +00:00
creator_batches Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
holds Bug 24412: (follow-up) prevent error in svc/holds 2020-11-06 15:55:17 +01:00
import_bib Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
localization Bug 14391: Add granular permissions to the administration module 2018-11-07 12:29:32 +00:00
new_bib Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
problem_reports Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
renew Bug 26457: Throw exception if update of issues table fails 2021-03-01 10:51:15 +01:00
report Bug 27380: Move get_prepped_report to object and use for svc/reports 2021-02-12 12:29:56 +01:00
return_claims Bug 29931: [21.05.x] Check cookie status before continuing 2022-03-09 15:09:19 +00:00
split_callnumbers Bug 26251: Remove unused routines from svc/split_callnumbers 2020-08-20 10:23:56 +02:00