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

--- Comment #143 from Clemens Tubach <[email protected]> ---
Created attachment 202458
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202458&action=edit
Bug 39224: Smart default value input for attribute mappings

Replace the plain text input for 'Default value' in the attribute mappings
form with a context-aware component (PatronFieldValueInput) that adapts
based on the selected Koha field:

- branchcode   → library selector (v-select populated from libraries_map)
- categorycode → patron category selector (v-select from categories_map)
- all others   → plain text input (existing behaviour)

The default value is also cleared automatically when the Koha field
changes, preventing stale values (e.g. a branchcode) from persisting
silently when the mapping target is switched to a different field.

PatronFieldValueInput is placed at the top-level components/ directory
rather than under IdentityProviders/ as the concept — rendering an
appropriate input for a given patron field value — is reusable across
any part of the Vue application that needs it.

Signed-off-by: Clemens Tubach <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to