Bug 23972

Summary: No property remove_debarment for Koha::Patron
Product: Koha Reporter: Magnus Enger <magnus>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: 18.11   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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 ***