Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After I changed the value of the submit button by using a node edit form as described here:
http://drupal.org/node/601646
I get the following error:
warning: Invalid argument supplied for foreach() in G:\Tom\Sites\drupal\sites\all\modules\cck\modules\content_multigroup\content_multigroup.node_form.inc on line 397.
The line that changes the value of the button in my node-order-edit.tpl.php file is this:
$form['buttons']['submit']['#value'] = t('Order now');
Any idea how to solve this?
Comment | File | Size | Author |
---|---|---|---|
#1 | cck_multigroup_submit.patch | 780 bytes | yingtho |
Comments
Comment #1
yingtho CreditAttribution: yingtho commentedI had the same problem and have included a patch to resolve the problem. Not sure if it's the right way the code should go.
Comment #2
tomsm CreditAttribution: tomsm commentedApplied the patch. Solves my problem. Thanks!
Comment #3
manuel.adanI have same issue but this patch does not solves it, may be another module related issue because node is not saved at all and I got a form refresh. This is a work around to it:
Comment #4
masher CreditAttribution: masher commentedThis patch fixed my problem sending emails using Simplenews and Content Multigroups.
Images in Content multigroups were deleted when a node was sent to email.
Thanks
Comment #5
jdanthinne CreditAttribution: jdanthinne commentedThe patch fix my problem (Simplenews + Multigroups) as well.
Comment #6
jdanthinne CreditAttribution: jdanthinne commentedCan you commit please?
Comment #7
tomsm CreditAttribution: tomsm commentedThis patch is still needed after updating to CCK 6.x-3.0-alpha4.
Changed line 323 of "content_multigroup.node_form.inc" to:
if ($form_state['submitted'] && !$form_state['multigroup_add_more'] || $form_state['buttons']['submit'][0]['#value'] == t('Save')) {
Please commit.
Comment #8
DamienMcKenna