ReFlar / polls

[ABANDONED] See https://github.com/FriendsOfFlarum/polls
MIT License
14 stars 14 forks source link

The modal to see the voters is not displayed #52

Closed Magicalex closed 5 years ago

Magicalex commented 5 years ago

Description

The modal to see the voters is not displayed same error here : https://discuss.flarum.org/d/9762-poll/112

Steps to Reproduce

  1. click on "view voters"

Technical Details

error in web console

ShowVotersModal.js:31 Uncaught TypeError: Cannot read property 'id' of undefined
    at ShowVotersModal.js:31
    at Array.map (<anonymous>)
    at e.a.getUsers (ShowVotersModal.js:26)
    at ShowVotersModal.js:61
    at Array.map (<anonymous>)
    at e.a.content (ShowVotersModal.js:58)
    at e.n.view (Modal.js:46)
    at e.render (Component.js:102)
    at e.n.view (ModalManager.js:18)
    at e.render (Component.js:102)
Magicalex commented 5 years ago

I always have an error.

Uncaught TypeError: n.id is not a function
    at ShowVotersModal.js:31
    at Array.map (<anonymous>)
    at e.a.getUsers (ShowVotersModal.js:26)
    at ShowVotersModal.js:61
    at Array.map (<anonymous>)
    at e.a.content (ShowVotersModal.js:58)
    at e.n.view (Modal.js:46)
    at e.render (Component.js:102)
    at e.n.view (ModalManager.js:18)
    at e.render (Component.js:102)
Ralkage commented 5 years ago

@Magicalex we will be re-reviewing this issue in January (after the crazy holidays we have here in the U.S. :D)

stefanneke commented 5 years ago

Any news on this issue? looking forward to the solution :) Thanx

Ralkage commented 5 years ago

@Magicalex or @stefanneke, is this still an issue?

Magicalex commented 5 years ago

yes :(

ouraios commented 5 years ago

@Ralkage I have the same issue too

ouraios commented 5 years ago

It seems like the Vote model is not able to retrieve the user Model but that's weirde because the Vote model has a valid user_id

image

kaspervm commented 5 years ago

I am having the same problem after clicking the show voters button:

ShowVotersModal.js:31 Uncaught TypeError: n.id is not a function at ShowVotersModal.js:31 at Array.map (<anonymous>) at e.a.getUsers (ShowVotersModal.js:26) at ShowVotersModal.js:61 at Array.map (<anonymous>) at e.a.content (ShowVotersModal.js:58) at e.n.view (Modal.js:46) at e.render (Component.js:102) at e.n.view (ModalManager.js:18) at e.render (Component.js:102)

Any solution?