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

--- Comment #7 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 207012
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207012&action=edit
Bug 43666: Drive transport options from the STI map, relax API enum

With the transport column relaxed to varchar, the remaining blockers
are the hardcoded <option> lists in the admin template and the fixed
enum in the REST API definition.

Admin UI: admin/file_transports.pl now builds the option list from a
curated core label map (FTP/SFTP) plus any new key present in
Koha::File::Transports->_sti_map that core's own _sti_classes don't
already declare - so only plugin-contributed keys are appended. 'local'
still doesn't appear, matching prior behaviour. Both add and edit forms
iterate this list. Mirrors how admin/smtp_servers.pl already drives its
transport select from metadata.

REST API: removes the enum constraint on transport (plain string now)
- incompatible with plugin-extensible values. The enum also listed
'file' where the database said 'local'; moot now the constraint is
gone.

t/db_dependent/api/v1/file_transports.t passes after yarn build and
restart_all.

Co-Authored-By: Claude Fable 5 <[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