bug fixed

This commit is contained in:
cesare 2023-11-09 16:21:04 +01:00
parent 4e4a24983f
commit 1babf44179
1 changed files with 2 additions and 2 deletions

View File

@ -941,7 +941,7 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
let citcantiche=['Inferno','Purgatorio','Paradiso']
if (canticapar==''){
citazioni.map(function(item) {
console.log(item['Cantica']+', '+item['Canto']+', '+item['Verso']);
console.log(item['Cantica']+', '+item['Canto']+', '+item['Verso'].split('-')[0]);
})
return
}
@ -956,7 +956,7 @@ function getVersiConCitazioni(canticapar='', cantopar=''){
tca=item['Canto']
if (tca.startsWith('0'))
tca=tca.replace('0','')
citid=(citcantiche.indexOf(item['Cantica'])+1).toString()+'_'+tca+'_'+item['Verso']
citid=(citcantiche.indexOf(item['Cantica'])+1).toString()+'_'+tca+'_'+item['Verso'].split('-')[0]
console.log(citid)
var commentsItem = {}
commentsItem['verso'] = citid;