I am using cck-6.x-3.x-dev
Is it possible to prepopulate fields that are in multigroup? If not, does anyone have a clue how to do it?

CommentFileSizeAuthor
#2 prepopulate-6.x-2.2-patch-1035126.patch2.46 KBMaxkupr

Comments

einkahumor’s picture

Version: » 6.x-2.x-dev

I'd also absolutely love the ability to prepopulate multi-value multigroup fields. I've no idea on how to achieve that though but it would officially make this module super awesome in my book.

Maxkupr’s picture

Issue tags: ++patch
StatusFileSize
new2.46 KB

here is patch for prepopulate-6.x-2.2
I'm not sure if it will work correct for all stuff, but it works fine for me.

you may take code from it and use on any other module version

pomliane’s picture

Status: Active » Needs review
pomliane’s picture

Status: Needs review » Needs work

Patch in #2 does not work here.
When search form is enabled in theme settings, on a prepopulated node add form, strings to populate are rendered just after the search form.

There are many warnings beginnig with and all related to:

warning: array_pop() [function.array-pop]: The argument should be an array in /drupal/sites/all/modules/prepopulate/prepopulate.module on line 81
warning: array_merge() [function.array-merge]: Argument #1 is not an array in /drupal/sites/all/modules/prepopulate/prepopulate.module on line 82
...

The multigroup is populated but the order of elements is not consistent. In most case, values are not saved.

jbrauer’s picture

Issue summary: View changes
Status: Needs work » Closed (outdated)

Closing D6 issues as it's no longer supported.