Go to file
Jonathan Druart e2c9fdb5bd Bug 25852: Improve C4::Creators::Lib reliability under plack
This is certainly a major issue that leads to many side-effects.
Under plack, the structure of the default values are not handled
correctly.
Package variables are used to store stuff like the "layout type". They
are complex structures (arrays of hashes) and returned without being
copied.
When the caller (the controller script) retrieve them then modify the
returned structures, it actually modifies the package's variables.

One of the issue is:
Create a new layout
The script retrieve a structure with all "selected" flags are set to 0
It select the first one as default (BAR as selected => 1)
The user creates the new layout and will selected BIBBAR (for instance)
If you then edit this new layout, the script will retrieve the
"label_types" and set "selected" for BIBBAR. However BAR is still
selected!
The UI receives 2 selected and display the first selected one that has
the selected option.

Test plan:
1. Create a layout type for Barcode/Biblio
2. Choose fields to print and size of font
3. Save
4. Edit existing Layout
=> Withtout this patch "Barcode" is the preselected option
=> With this patch applied, the correct "Barcode/Biblio" option is
selected

Signed-off-by: Kelly McElligott <kelly@bywatersolutions.com>

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 0a9d3f17d9)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2020-08-13 16:23:59 +00:00
C4 Bug 25852: Improve C4::Creators::Lib reliability under plack 2020-08-13 16:23:59 +00:00
Koha Bug 23797: DBIC Schema Changes 2020-07-31 20:03:37 +00:00
acqui Bug 21268: Don't remove 0 allocated funds from fund list 2020-08-06 20:05:30 +00:00
admin Revert "Bug 25968: Make logs sort by date descending as a default" 2020-08-13 14:30:51 +00:00
api/v1 Bug 23820: Add checkout to default to patron's home branch on club hold 2020-07-27 16:40:08 +00:00
authorities Bug 25428: Correctly encode link if authority subfield is a URL 2020-05-22 09:33:16 +01:00
basket Bug 17842: Simplify the code 2020-06-17 21:19:56 +00:00
catalogue Bug 23591: Hide archived suggestions 2020-04-14 16:36:41 +01:00
cataloguing Bug 25553: Make date columns sortable on the edit items table 2020-07-10 15:19:20 +00:00
circ Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-30 17:30:20 +00:00
clubs Bug 23084: Replace grep {^$var$} with grep {$_ eq $var} 2020-02-17 10:44:45 +00:00
course_reserves Bug 22970: Allow to change homebranch in batch add course reserves 2020-05-12 11:40:54 +01:00
debian Bug 25920: Add liblocale-codes-perl package to fix ubuntu-stable (focal) 2020-08-06 19:57:11 +00:00
docs Bug 21395: (QA follow-up) Remove some introduced issues 2020-07-13 16:45:15 +00:00
errors Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
etc Bug 24165: Add ability to send any item field in a library chosen SIP field 2020-07-27 16:40:53 +00:00
ill Bug 23173: (follow-up) Small improvements in efficiency 2020-04-06 11:05:09 +01:00
installer Bug 26070: DBRev 20.05.02.010 2020-08-06 20:45:36 +00:00
koha-tmpl Bug 25953: Add ID to installed plugins table on plugins-home.pl 2020-08-13 14:54:18 +00:00
labels Bug 24735: Remove QueryParser-related code 2020-03-02 11:13:03 +00:00
members Bug 25322: fix for not selected "relationship" defaults to father 2020-07-13 16:30:58 +00:00
misc Bug 23696: take deleted biblios into account when building oai sets 2020-07-31 20:08:04 +00:00
offline_circ Bug 23463: Replace ModItem with Koha::Item->store 2020-03-23 09:26:30 +00:00
opac Bug 26070: Remove GoogleIndicTransliteration system preference 2020-08-06 20:39:07 +00:00
patron_lists
…
patroncards Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
plugins Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
pos Bug 25139: Corrections to date picker handling 2020-04-15 08:33:07 +01:00
reports Bug 21395: (QA follow-up) Remove some introduced issues 2020-07-13 16:45:15 +00:00
reserve Bug 25516: Fix for "Can't call method unblessed on unblessed reference" 2020-05-19 08:29:34 +01:00
reviews
…
rotating_collections
…
serials Bug 25081: Fix wrong comment 2020-04-08 11:53:37 +01:00
services
…
skel
…
suggestion Bug 24819: (follow-up) Rename suggestor to suggester 2020-04-20 13:36:42 +01:00
svc Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
t Bug 25709: Rename systempreference to NotesToHide 2020-07-31 21:14:42 +00:00
tags Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
tmp/modified_authorities
…
tools Bug 5087: (QA follow-up) Rename the attribute to fit later API usage 2020-07-30 17:01:53 +00:00
virtualshelves Bug 23084: Replace grep {^$var$} with grep {$_ eq $var} 2020-02-17 10:44:45 +00:00
xt Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
.editorconfig Bug 24774: Set JSON indentation of 2 spaces in .editorconfig 2020-03-19 09:24:52 +00:00
.eslintrc.json
…
.gitignore
…
.htaccess
…
.mailmap
…
.perlcriticrc Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
.scss-lint.yml
…
INSTALL
…
Koha.pm Bug 26070: DBRev 20.05.02.010 2020-08-06 20:45:36 +00:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 25792: Rename 'ttf-dejavu' package to 'fonts-dejavu' for Debian 11 2020-07-28 14:46:44 +00:00
README
…
README.md
…
README.robots
…
about.pl Bug 25807: Add Template 3.008 to the exclude list 2020-07-13 16:03:14 +00:00
changelanguage.pl
…
cpanfile Bug 25723: Drop DateTime::Set from cpanfile 2020-07-27 17:38:47 +00:00
fix-perl-path.PL Bug 21395: Make perlcritic happy 2020-07-13 16:44:43 +00:00
gulpfile.js
…
help.pl
…
koha_perl_deps.pl Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
kohaversion.pl
…
mainpage.pl Bug 4461: Fix status and borrowernumber fields in problem_reports and more 2020-04-06 11:18:59 +01:00
package.json Bug 23025: security vulnerability detected in fstream < 1.0.12 defined in yarn.lock 2019-11-27 11:30:17 +00:00
rewrite-config.PL Bug 25792: Rename 'ttf-dejavu' package to 'fonts-dejavu' for Debian 11 2020-07-28 14:46:44 +00:00
yarn.lock Bug 23025: Update yarn.lock 2019-11-27 11:30:17 +00:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo