Bug 23972 - No property remove_debarment for Koha::Patron
Summary: No property remove_debarment for Koha::Patron
Status: RESOLVED DUPLICATE of bug 23082
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: 18.11
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-05 13:47 UTC by Magnus Enger
Modified: 2019-11-05 13:48 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Magnus Enger 2019-11-05 13:47:43 UTC
To reproduce: 

- Make sure you have a borrower with a debarment
- Go to the full "patron edit" screen, e.g. /cgi-bin/koha/members/memberentry.pl?op=modify&destination=circ&borrowernumber=1&categorycode=STAFF
- Tick the checkbox for "Remove?" connected with the debarment
- Click "Save" on the floating toolbar on the top of the screen
- Observe the "Internal Server Error" message
- Check the plack-error.log and it should say just "No property remove_debarment for Koha::Patron"

Tested on a debian package install of Koha 18.11.03. (I also tested on current master, but could NOT reproduce the problem there.)

I tried to grep for instances of remove_debarment being used as a property of a Koha::Patron object, but with no luck:

$ grep -rn remove_debarment *
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt:  954:	                                        <input type="checkbox" id="debarment_[% d.borrower_debarment_id | html %]" name="remove_debarment" value="[% d.borrower_debarment_id | html %]" />
members/memberentry.pl:  112:	my @debarments_to_remove = $input->multi_param('remove_debarment');
members/memberentry.pl:  224:	        qr/^add_debarment$/, qr/^debarred_expiration$/, qr/^remove_debarment$/, # We already dealt with debarments previously
Comment 1 Magnus Enger 2019-11-05 13:48:54 UTC

*** This bug has been marked as a duplicate of bug 23082 ***