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 1968-1973 legend:hover { Link Here
1968
            });
1968
            });
1969
        [% END %]
1969
        [% END %]
1970
        $("#guarantor_template").hide();
1970
        $("#guarantor_template").hide();
1971
        var guarantor_attributes;
1972
        var to_api_mapping;
1971
        [% IF guarantor_attributes %]
1973
        [% IF guarantor_attributes %]
1972
            guarantor_attributes = [% To.json(guarantor_attributes) %];
1974
            guarantor_attributes = [% To.json(guarantor_attributes) %];
1973
        [% END %]
1975
        [% 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