[Koha-bugs] [Bug 31498] Allow for custom primary contact method values

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 24 18:56:16 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31498

--- Comment #4 from Lucas Gass <lucas at bywatersolutions.com> ---
(In reply to dgarr from comment #3)
> I've been trying to add new values in primary_contact_method as well.  I
> finally added some in JQuery:
>  var myOptions = {
>     val1 : 'Check',
>     val2 : 'Call'
> };
> var mySelect = $('#primary_contact_method');
> $.each(myOptions, function(val, text) {
>     mySelect.append(
>         $('<option></option>').val(val).html(text)
>     );
> });
> Unfortunately, these appear to be display-only, and not have any real value
> (they don't apply when the page is saved).  Anyone have any insight?  There
> has to be a work-around somewhere.

The problem here is when you re-open the patron form to edit you cannot
retrieve the custom value and it will be overwritten. Unfortunately you cannot
currently retrieve the value from the REST API either. See Bug 28701. 

The best way forward is likely this enhancement request.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list