View | Details | Raw Unified | Return to bug 26597
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (+2 lines)
Lines 1929-1934 legend:hover { Link Here
1929
            });
1929
            });
1930
        [% END %]
1930
        [% END %]
1931
        $("#guarantor_template").hide();
1931
        $("#guarantor_template").hide();
1932
        var guarantor_attributes;
1933
        var to_api_mapping;
1932
        [% IF guarantor_attributes %]
1934
        [% IF guarantor_attributes %]
1933
            guarantor_attributes = [% To.json(guarantor_attributes) %];
1935
            guarantor_attributes = [% To.json(guarantor_attributes) %];
1934
        [% END %]
1936
        [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-2 / +6 lines)
Lines 122-128 function select_user(borrowernumber, borrower, relationship) { Link Here
122
            fieldset.find('.new_guarantor_relationship').val(relationship);
122
            fieldset.find('.new_guarantor_relationship').val(relationship);
123
        }
123
        }
124
124
125
        if(typeof guarantor_attributes !== 'undefined' && to_api_mapping) {
125
        if(guarantor_attributes && to_api_mapping) {
126
            $('#saverecord').prop('disabled', true);
126
            $.ajax({
127
            $.ajax({
127
                url: '/api/v1/patrons/'+borrowernumber,
128
                url: '/api/v1/patrons/'+borrowernumber,
128
                method: "GET",
129
                method: "GET",
Lines 135-140 function select_user(borrowernumber, borrower, relationship) { Link Here
135
                            document.forms.entryform[attribute].value = data[key_data];
136
                            document.forms.entryform[attribute].value = data[key_data];
136
                        }
137
                        }
137
                    }
138
                    }
139
                    $('#saverecord').prop('disabled', false);
140
                },
141
                error:function(){
142
                    $('#saverecord').prop('disabled', false);
138
                }
143
                }
139
            });
144
            });
140
        }
145
        }
141
- 

Return to bug 26597