]> git.koha-community.org Git - koha.git/commit
Bug 29747: Delete columns that don't exist from settings
authorNick Clemens <nick@bywatersolutions.com>
Tue, 21 Dec 2021 13:20:46 +0000 (13:20 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 14 Jan 2022 13:07:47 +0000 (08:07 -0500)
commit7e66a5c3e6b12e4d8a2eab875e185933ec65a805
treedec7250d9d512cb9cb9a00ef5fac60d6406c5208
parent5ee42b6b6031472dc6637d1f22b53815ecb96121
Bug 29747: Delete columns that don't exist from settings

This patch simply checks if we are callinmg from the plugin, and removes
two columns from the settings if so

To test:
 1 - In Admin->Marc bibliographic framework got to Marc Structure for default framework
 2 - Search for 856$u
 3 - Set Plugin to upload.pl
 4 - Edit a record in the default framework
 5 - Under 856u, click 'Upload'
 6 - Uplaod a file and then click 'Choose'
 7 - nothing happens
 8 - View consiole (f12) and see error
 9 - Apply patch
10 - Reload the page
11 - No more error
12 - Click choose
13 - Record link is populated

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt