Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2009 at 21:41 UTC
Updated:
10 Apr 2010 at 17:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
sirkitree commentedI've run into this while trying to assign an action to a trigger where there are multiple forms all with the same select option and button name. I ended up doing a direct INSERT instead but would rather be able to use drupalPost().
Comment #2
Scott Reynolds commentedsubscribe +1
http://3281d.com/2009/03/27/death-to-subscribe-comments
Comment #3
stella commentedComment #4
gregglesI ran into this today. Will try to test/review later.
Comment #5
Scott Reynolds commentedWhats missing from this patch is the test to make sure it works :-D
Comment #6
boombatower commentedThere was a different issue (can't remember) that added parameters to drupalPost and it merged them into a single options array which was way cleaner...perhaps if someone can find the issue we could get that in or implement in this issue.
Not a stopper to this patch of course, just a suggestion.
Comment #7
stella commentedComment #8
c960657 commenteddrupalPost() already has a lot of arguments. I wonder whether it would be better to supply the form_id as part of the $edit array?
I.e. like this:
instead of like this:
form_id already occurs as a hidden field, so there is no risk of colliding with an existing field name.
Comment #9
boombatower commented#335035: drupalPost() incorrectly submits input for disabled elements is the route I think is best in regards to arguments.
Comment #11
EvanDonovan commented#360023: Update node_comment_statistics during "Publish comment" action has been postponed on this - a change which I think is very important to make core Drupal have a complete set of actions for content moderation. Can this still be considered for D7, or #335035: drupalPost() incorrectly submits input for disabled elements if that supersedes this issue? It would be a shame, imo, if D7 shipped without an action to publish comments, since it has an action to unpublish them.
Comment #12
andypostI use different approach for the same task #601398: Simpletest does not allow assigning actions to triggers
But it needs little help with comment
Comment #13
effulgentsia commentedFixed with #601398-60: Simpletest does not allow assigning actions to triggers and that issue has more follow-up.
Comment #14
andypostI need to mention that follow up changes $form_id to $form_html_id - a actual HTML ID of form