I don't know why, but aren't the basic poll settings like "Maximum choices," "Close poll," "Starting date," and "Closing date" available to users with the the "create polls" permission? It's so weird that I have to activate "administer polls" for poll settings to work. And it's so odd too. Without the administer polls permission, the "Poll settings" fieldset shows up, but there's no link to expand it (like it's disabled). And what's even weirder are that the fieldsets after "Poll settings" are disabled too.

The only access modules I have are OG User Roles and OG Content Type Admin. And I don't think they would affect this.

Comments

ChrisKennedy’s picture

Status: Active » Postponed (maintainer needs more info)

It sounds like the javascript from another module may be messing things up. Try disabling everything except Advpoll & Voting API and let us know if it does anything.

Crimson’s picture

Ho ho ho. Good catch.

I can't disable my modules because it's a live site and that would kind of shut it down. But I opened up Firebug and I saw this error:

elem has no properties [advpoll jquery.js (line 2)]
e(undefined, "checked", undefined)jquery.js (line 2)
e("checked", undefined, undefined)jquery.js (line 2)
updateWriteins()advpoll-form.js (line 56)
nodeFormAutoAttach()advpoll-form.js (line 70)
(no name)()advpoll-form.js (line 114)
e()jquery.js (line 2)
[Break on this error] eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a...

And here's my list of JS.

<script type="text/javascript" src="/misc/jquery.js"></script>
<script type="text/javascript" src="/misc/drupal.js"></script>
<script type="text/javascript" src="/modules/devel/devel.js"></script>
<script type="text/javascript" src="/modules/advpoll/advpoll-form.js"></script>
<script type="text/javascript" src="/modules/og/og.js"></script>
<script type="text/javascript" src="/misc/progress.js"></script>
<script type="text/javascript" src="/misc/upload.js"></script>
<script type="text/javascript" src="/misc/textarea.js"></script>
<script type="text/javascript" src="/misc/collapse.js"></script>
<script type="text/javascript" src="/modules/advpoll/advpoll-vote.js"></script>
<script type="text/javascript" src="/modules/advpoll/jquery.form.js"></script>
anders.fajerson’s picture

Status: Postponed (maintainer needs more info) » Fixed

The error doesn't tell that much, good old trial and error is the best approach. I highly recommend a developer setup, there are for example good documentation in the handbook about installing Drupal locally.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

dtabach’s picture

Title: "Administer polls" needed for Poll settings » "Administer polls" needed for collapsible fieldsets in Edit form
Version: 5.x-1.x-dev » 5.x-1.0-beta6
Status: Closed (fixed) » Active

I have observed exactly the same issue.

Turned off all non-contrib modules (but Advanced Pool 5.x-1.0-beta6 and Voting API 5.x-1.6), enabled a core theme (Garland), but collapsible fieldsets are still not working in the Poll edit form, just like Crimson described.

Fieldsets only work for users with 'Administer Polls' permission.

Leeteq’s picture

Subscribing.

ChrisKennedy’s picture

Status: Active » Postponed (maintainer needs more info)

Pretty tough to debug this without a link or more information on the JavaScript errors, modules installed, relevant theme, etc.

ishiomin’s picture

I have observed exactly the same issue.
Fieldsets only work for users with 'Administer Polls' permission and 'Administer node' permission in exactly the same role . If they are in two differents roles (and the user has the two roles of course) fieldset don't work.

My configuration is with multiflex-3 theme and several third parts modules.

sanduhrs’s picture

Way to reproduce:

  1. Install Drupal 5
  2. Create first account
  3. Create second account
  4. Install Voting API
  5. Install Advanced Poll
  6. Go to admin/user/access
  7. Activate create polls for authenticated user
  8. Logout
  9. Login with second account
  10. Go to ?q=node/add/advpoll-binary or ?q=node/add/advpoll-ranking
  11. Try to open the fieldset Poll settings (see attachment 1)
  12. Disable JavaScript and look, what should be available (see attachment 2)
  13. Enable JavaScript
  14. Logout
  15. Login with first account
  16. Go to admin/user/access
  17. Activate administer polls for authenticated user
  18. Logout
  19. Login with second account
  20. Go to ?q=node/add/advpoll-binary or ?q=node/add/advpoll-ranking
  21. All seems to be well (see attachment 3)

System: Ubuntu 8.10 , PHP 5, MySQL 5, FF 3

It seems line 56 in advpoll-form.js produces the problem, in case $("input.settings-writeins") is not available in the DOM, as is when the user doesn't have administer polls permission.

ChrisKennedy’s picture

Status: Postponed (maintainer needs more info) » Fixed

Now that is a helpful bug report :) Fixed it. http://drupal.org/cvs?commit=166591

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.