Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
Petro Vashchuk f58c271b42 Bug 27654: Sort module.keys hash when render columns_settings.tt
On the "Administration -> Table settings" page, the order of
"tables related to pages" sections is different with each page refresh.
Cause of that is that Perl gives random order for hash keys where
those elements are stored on template render. To avoid that we
add a "sort" method where getting keys similarly how it was done
previously to display tables always in the same order.

To reproduce:
    1) Head over to /cgi-bin/koha/admin/columns_settings.pl
    2) Open any collapsed module settings, for example
"Acquisition tables". Check the order of pages.
    3) Reload the page. Check the order of the same elements again.
They always come in random order, it's easily distinguishable.
    4) Apply the patch.
    5) Repeat steps 1-3 again and ensure that the order of pages
stays the same no matter how many times you reload the page.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-12 12:14:50 +01:00
..
preferences Bug 18506: (QA follow-up) opacShibOnly -> OPACShibOnly 2021-02-09 09:46:08 +01:00
searchengine/elasticsearch Bug 27406: Update elasticsearch mapping to adhere to ACC2 2021-01-21 15:42:46 +01:00
additional-fields.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
admin-home.tt
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
aqbudgets.tt Bug 23767: Total children only if parents not visible 2021-02-12 12:14:50 +01:00
aqcontract.tt
aqplan.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt
authorised_values.tt
authtypes.tt
background_jobs.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
biblio_framework.tt
branch_transfer_limits.tt
branches.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
cash_registers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
categories.tt Bug 26985: Remove code for "Upcoming events" from codebase as not implemented 2021-01-20 13:42:08 +01:00
checkmarc.tt
cities.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
classsources.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
clone-rules.tt
columns_settings.tt Bug 27654: Sort module.keys hash when render columns_settings.tt 2021-02-12 12:14:50 +01:00
credit_types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
currency.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
debit_types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
desks.tt
didyoumean.tt
edi_accounts.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
edi_ean_accounts.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
itemtypes.tt Bug 20238: Display description of ITEMTYPECAT in search category 2021-01-28 17:32:52 +01:00
koha2marclinks.tt
library_groups.tt
localization.tt
marc_subfields_structure.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
marctagstructure.tt
matching-rules.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
oai_set_mappings.tt
oai_sets.tt
overdrive.tt
patron-attr-types.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
preferences.tt Bug 17364: Add ability to exclude some columns from selection for system preferences 2021-02-01 16:36:36 +01:00
share_content.tt
smart-rules.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
sms_providers.tt
smtp_servers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt Bug 26602: Don't export "actions" column 2021-02-08 14:56:00 +01:00