Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Jonathan Druart a066f03b5e Bug 8326: Make repeatable and unique_id modifiable when editing patron attribute type
This patch add the ability to modify the attribute "repeatable" and
"unique_id" for a patron's attribute type.
Prior to this patch it was not possible, to keep data integrity.

When editing an attr type, the controller will check is the value can be
modified, depending on the existing patron's attributes.

Test plan:
0/ Setup
Create 1 patron attribute PA1 that can be repeatable
Create 1 patron attribute PA2 that does not have the unique restriction
Create 1 patron attribute PA3 that cannot be repeatable and does not
have the unique restriction

1/
Edit them and confirm that you can modify the repeatable and unique
restrictions

2/ Restore values from 0.
Create a patron P1 with several PA1, PA2=42 and whatever in PA3

3/ Edit PA1 => you cannot remove the repeatable flag but can still
remove the unique

4/ Create a patron P2 with PA2=42

5/ Edit PA2 => you cannot add the unique flag

Play a bit more with the different combinaisons and confirm that it
works as advertised.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-15 11:48:55 +01:00
..
preferences Bug 18506: (QA follow-up) opacShibOnly -> OPACShibOnly 2021-02-09 09:46:08 +01:00
searchengine/elasticsearch Bug 26958: Move Elasticsearch mapping template JS to the footer 2021-02-12 12:30:58 +01:00
additional-fields.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
admin-home.tt
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
aqbudgets.tt Bug 27653: Use div instead of caption for controls 2021-02-15 11:48:55 +01:00
aqcontract.tt
aqplan.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt
authorised_values.tt
authtypes.tt Bug 25954: Replace paragraph tags with labels in header search forms 2021-01-04 14:06:27 +01:00
background_jobs.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
biblio_framework.tt
branch_transfer_limits.tt
branches.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
cash_registers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
categories.tt Bug 26985: Remove code for "Upcoming events" from codebase as not implemented 2021-01-20 13:42:08 +01:00
checkmarc.tt
cities.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
classsources.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
clone-rules.tt
columns_settings.tt Bug 27654: Sort module.keys hash when render columns_settings.tt 2021-02-12 12:14:50 +01:00
credit_types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
currency.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
debit_types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
desks.tt
didyoumean.tt
edi_accounts.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
edi_ean_accounts.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
itemtypes.tt Bug 20238: Display description of ITEMTYPECAT in search category 2021-01-28 17:32:52 +01:00
koha2marclinks.tt
library_groups.tt
localization.tt
marc_subfields_structure.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
marctagstructure.tt Bug 27416: Make "Modify tag" and "Add tag" translatable 2021-01-13 17:17:00 +01:00
matching-rules.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt Bug 8326: Make repeatable and unique_id modifiable when editing patron attribute type 2021-02-15 11:48:55 +01:00
preferences.tt Bug 17364: Add ability to exclude some columns from selection for system preferences 2021-02-01 16:36:36 +01:00
share_content.tt
smart-rules.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
sms_providers.tt
smtp_servers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00