- Issue created by @chsdaiguil
- ๐ฎ๐ณIndia arunsahijpal
Hi @chsdaiguil,
It doesn't show 1 vote when its 0
see ss for reference - ๐ฎ๐ณIndia arunsahijpal
I meant- Check screenshot(ss) for more information.
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
prem suthar โ made their first commit to this issueโs fork.
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
@arunsahijpal i think so issue is available in the 8.1.6 version .
- Merge request !67By default change the value of vote form 1 to 0 . โ (Open) created by prem suthar
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
@chsdaiguil
by default its showing only 0 votes after install 8.1.6 and 2.0 alpha 3 version but i cant reproduce the issue.
- ๐ซ๐ทFrance chsdaiguil Coteaux-du-lyonnais
I have 1 vote for 0 vote on version 8.x-1.6
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
@chsdaiguil can you share any screen shot for reference where you see the 1 vote ?
- ๐ซ๐ทFrance chsdaiguil Coteaux-du-lyonnais
@prem suthar Yes, see attachment
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
@chsdaiguil for me its showing only 0 vote .
see attachment - ๐ฎ๐ณIndia arunsahijpal
@chsdaiguil I think there may be some issue at your end or maybe you are using multilingual site that's why it is happening, I am not sure.
@bramdriesen and @berdir please look into this.
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
Vanilla Drupal, latest 8 1.6 release it's showing 0 for me.
Didn't test to see if this is a ML issue.
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
Translated the poll into NL (poll + poll vote) no issues either.
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
Note that what is being suggested in the IS is not the solution. That string is used to display the singular "1 vote" when there is only 1 vote to prevent it showing "1 votes". Changing that to 0 is not the fix because when there are no votes it's showing "0 votes".
- ๐ซ๐ทFrance chsdaiguil Coteaux-du-lyonnais
maybe a user who voted, and whose account was deleted?
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
Highly doubt so as votes are not really tied to users. Voting can also happen anonymously if enabled so it's no hard requirement.
Voted with a user and deleted the user and it's contents, votes are kept.
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
As there are limited poll votes in your example, can you check in the database what is saved for this poll? Mainly interested in the poll_vote
- ๐ซ๐ทFrance chsdaiguil Coteaux-du-lyonnais
in the database
"poll_vote" I have 6 votesWe only have one poll on our site
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
hmm can you share the contents of the poll_vote table then? There must be something in there that somehow makes it think there is one vote for the second option.
Oh, did you clear the cache? Just to rule that out as well.
- ๐ฎ๐ณIndia prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan
prem suthar โ changed the visibility of the branch 3505480-empty-vote to hidden.
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
Can you check your interface translation strings and double check no one accidentally translated 0 as 1. Can probably also be checked by viewing the poll in a different language.
- ๐ง๐ชBelgium BramDriesen Belgium ๐ง๐ช
hmm okay, no custom alterations (hooks, templates,...) did you check a different language?