Skip to content

Commit

Permalink
Merge pull request #99 from JaroslawZielinski/feature/91-frontend-com…
Browse files Browse the repository at this point in the history
…ponent-for-siglum-input-fixes

task-91: Frontend component for siglum input fixes - fixes cd 5
  • Loading branch information
JaroslawZielinski authored Aug 19, 2024
2 parents abb5918 + 0790cce commit d5bff93
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"minimum-stability": "stable",
"require": {
"jaroslawzielinski/sqlite3-database-class": "1.0.3",
"jaroslawzielinski/torah": "2.0.13"
"jaroslawzielinski/torah": "^2.0"
},
"autoload": {
"files": [
Expand Down
6 changes: 4 additions & 2 deletions view/base/web/js/form/element/siglum.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@ define([
},
getCurrentChapters: function () {
const selectedTorah = this.structure[this.parts.translation];
let selectedTorah2 = Object.entries(selectedTorah);
// remove exceptions
delete selectedTorah2[3];
const selectedGroup = utils
.findIt(Object.entries(selectedTorah), this.parts.book)
.pop()[0];
.findIt(selectedTorah2, this.parts.book).pop()[0];
return selectedTorah[selectedGroup][this.parts.book]['chapters'];
},
renderSetChapter: function () {
Expand Down

0 comments on commit d5bff93

Please sign in to comment.