Koha/serials
Jonathan Druart f45fe692b1 Bug 22849: Do not share data (Mana) without agreement
A couple of things wrong in serials/subscription-add.pl

1.
447     if ( defined( $query->param('mana_id') ) ) {

It's always defined, you wanted to test with ""

2.
375     if ( (C4::Context->preference('Mana')) and ( grep { $_ eq "subscription" } split(/,/, C4::Context->preference('AutoShareWithMana'))) ){

Mana == 2 == let me think about it
=> I am not expecting to reach Koha::SharedContent in that case

So we are sharing data whereas the library did not decide yet!

Test plan:
You need to be familiar you Mana to test this patch.

JD: I did not test this patch

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-05-14 18:06:17 +00:00
..
acqui-search-result.pl
acqui-search.pl
add_user_search.pl
checkexpiration.pl
claims.pl Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
create-numberpattern.pl
lateissues-export.pl
reorder_members.pl
routing-preview.pl Bug 21719: Fix typos 2018-11-08 02:18:46 +00:00
routing.pl Bug 20351: Shortcut serials scripts if a blocking error appeared 2018-10-17 14:25:30 +00:00
serials-collection.pl Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
serials-edit.pl Bug 20351: Shortcut serials scripts if a blocking error appeared 2018-10-17 14:25:30 +00:00
serials-home.pl
serials-search.pl Bug 15774: (follow-up) fix rebase issues 2019-03-07 20:37:06 +00:00
showpredictionpattern.pl Bug 15149: Serial test prediction pattern does not consider end date 2019-02-26 13:10:34 +00:00
subscription-add.pl Bug 22849: Do not share data (Mana) without agreement 2019-05-14 18:06:17 +00:00
subscription-batchedit.pl Bug 15774: Use Koha::Object(s) for additional fields 2019-03-07 20:37:05 +00:00
subscription-bib-search.pl
subscription-detail.pl Bug 15774: Use the include file to display the subscription's additional fields 2019-03-07 20:37:06 +00:00
subscription-frequencies.pl
subscription-frequency.pl
subscription-history.pl
subscription-numberpattern.pl
subscription-numberpatterns.pl
subscription-renew.pl Bug 20351: Shortcut serials scripts if a blocking error appeared 2018-10-17 14:25:30 +00:00
viewalerts.pl