]> git.koha-community.org Git - koha.git/commit
Bug 29999: (follow-up) Show the remote image tab if selected
authorOwen Leonard <oleonard@myacpl.org>
Thu, 17 Mar 2022 18:17:44 +0000 (18:17 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 25 Mar 2022 21:01:03 +0000 (11:01 -1000)
commit7d1e2bb45c0b4bed473dba5880563d912bc66959
tree3837badf98ee292a4e9a6cfd4d201469cb7a1aec
parent2fc5c28fec456f11440224bba50e2a066dcf2c79
Bug 29999: (follow-up) Show the remote image tab if selected

This follow-up corrects the markup so that if a value is entered in the
"Remote image" field, the correct tab will be selected upon page load.

The patch also corrrects the input name on the "No image" field so that
the option works correctly.

To test, apply the patch and edit an authorized value.

- Select an icon from an icon set. Save, and then re-edit.
  - The correct icon set tab should be activated.
- Select "No image," save, and re-edit.
  - The "No image" tab should be selected.
- On the "Remote image" tab, enter a remote image url, e.g.
  https://via.placeholder.com/50/FF0000/FFFFFF.png. Save and re-edit.
- The "Remote image" should be selected.

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt