From: Bill Erickson Date: Mon, 28 Mar 2016 20:10:10 +0000 (-0400) Subject: LP#1564685 Prevent edit of linked addresses X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=fa131694c54c47898d9bf4237fdaafbff7743be0;p=evergreen%2Fmasslnc.git LP#1564685 Prevent edit of linked addresses Do not allow a cloned user to modify a linked address. Only the address owner should be able to do that. Signed-off-by: Bill Erickson Signed-off-by: Kathy Lussier Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index 92c5e11521..a98d7feb90 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -703,7 +703,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'address_type') %] - [% draw_form_input('aua', 'address_type', 'addresses[$index]') %] + [% draw_form_input('aua', + 'address_type', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'address_type') %]
@@ -713,7 +714,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'post_code') %] - [% draw_form_input('aua', 'post_code', 'addresses[$index]') %] + [% draw_form_input('aua', + 'post_code', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'post_code') %]
@@ -723,7 +725,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'street1') %] - [% draw_form_input('aua', 'street1', 'addresses[$index]') %] + [% draw_form_input('aua', + 'street1', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'street1') %]
@@ -733,7 +736,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'street2') %] - [% draw_form_input('aua', 'street2', 'addresses[$index]') %] + [% draw_form_input('aua', + 'street2', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'street2') %]
@@ -743,7 +747,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'city') %] - [% draw_form_input('aua', 'city', 'addresses[$index]') %] + [% draw_form_input('aua', + 'city', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'city') %]
@@ -753,7 +758,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'county') %] - [% draw_form_input('aua', 'county', 'addresses[$index]') %] + [% draw_form_input('aua', + 'county', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'county') %]
@@ -763,7 +769,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'state') %] - [% draw_form_input('aua', 'state', 'addresses[$index]') %] + [% draw_form_input('aua', + 'state', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'state') %]
@@ -773,7 +780,8 @@ within the "form" by name for validation.
[% draw_field_label('aua', 'country') %] - [% draw_form_input('aua', 'country', 'addresses[$index]') %] + [% draw_form_input('aua', + 'country', 'addresses[$index]', '', 'addr._linked_owner') %]
[% draw_example_text('aua', 'country') %]
@@ -788,6 +796,7 @@ within the "form" by name for validation.
@@ -806,6 +815,7 @@ within the "form" by name for validation.