As far as i test, if i put my pollfield into a "cck_group" fieldset, the "More Choice" stop working. The faulty source code is ( pollfield.module ) :

function pollfield_add_choice(){
// ...

// Render the new output.
$form_choices=$form[$field_name][$field_name_delta]['group'];

//...
}

If i add the cck fieldgroup, it should be rewriten as

function pollfield_add_choice(){
  // ...

  // Render the new output.
 $form_choices=$form["group_mygroup"][$field_name][$field_name_delta]['group'];

 //...

}

Comments

Michsk’s picture

This didn't fix it for me. I to have the pollfiel in a group (cck3.x tough).

Why did i place it in a group? Because i use vertical tabs and the pollfield didnt want to go in a vertical tab, adding it in a cck group placed it a vertical tab.

dimduj’s picture

PollField should take #parents into account .... in the pollfield_add_choice() too

May I help for something ?

Michsk’s picture

dimduj, do you think you could supply a patch?

bryan kennedy’s picture

Priority: Normal » Major

I can confirm that this bug is active in the latest dev version of pollfield with the latest D6 and related modules.

bryan kennedy’s picture

Version: 6.x-1.12-beta1 » 6.x-1.x-dev
Issue tags: +fieldgroup

OK Audaxis, your code is a good start because it does direct me to the place where we need to enact a change. However, the submitted code doesn't fix the issue since the

$form["group_mygroup"]

bit is specific to your content type's field group. So, now I just need to figure out how to detect the group name for a pollfield inside some group. If anyone has any quick tips, they are appreciated.

bryan kennedy’s picture

Status: Active » Fixed

OK, this should be fixed in the latest dev. Here's the commit. http://drupalcode.org/project/pollfield.git/commit/24ede79

Thanks for catching this Audaxis. Please test this out and let us know if you still see the problem.

Status: Fixed » Closed (fixed)
Issue tags: -fieldgroup

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