Skip to content

Commit

Permalink
Merge pull request #106 from JaroslawZielinski/feature/overall-verses…
Browse files Browse the repository at this point in the history
…-two-division-fixes

Overall Verses Two Division Fixes
  • Loading branch information
JaroslawZielinski authored Aug 20, 2024
2 parents 418de22 + 0668e53 commit 0724873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/base/web/js/form/element/siglum.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ define([
},
renderSetBook: function () {
const booksByTranslation = this.structure[this.parts.translation];
let booksSelected = {};
let booksSelected = [];
switch (this.divisionType) {
case 'two-division':
const map = utils.getGroupsMap();
const groups = map[this.parts.group];
for (let i = 0; i < groups.length; i++) {
const foundBooks = Object.keys(booksByTranslation[groups[i]]);
let foundBooks = Object.keys(booksByTranslation[groups[i]]);
for (let j = 0; j < foundBooks.length; j++) {
booksSelected.push(foundBooks[j]);
}
Expand Down

0 comments on commit 0724873

Please sign in to comment.