Skip to content

Commit

Permalink
Merge pull request #321 from tomudding/fix/sorting-of-installations-i…
Browse files Browse the repository at this point in the history
…n-meeting-view

Fix sorting of installations on install form
  • Loading branch information
tomudding authored Aug 16, 2023
2 parents 5968749 + 16fe7cd commit eb0948b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/Database/view/database/meeting/installform.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ $(document).ready(function () {
$.each(data.json.members, function (idx, member) {
var installationCount = 0;

member.installations.sort((a, b) => {
return ('Lid' === b.function) ? 1 : 0;
});

$.each(member.installations, function (idx, install) {
var decNum = install.meeting_type + '-' + install.meeting_number
+ '-' + install.decision_point + '-' + install.decision_number
Expand Down

0 comments on commit eb0948b

Please sign in to comment.