Clicking delete on the confirmation form just redirects me back to the confirmation form.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | commons_groups-actions_button_submit_overriding_defaults-1842674-3.patch | 2.31 KB | pierrepaul |
Clicking delete on the confirmation form just redirects me back to the confirmation form.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | commons_groups-actions_button_submit_overriding_defaults-1842674-3.patch | 2.31 KB | pierrepaul |
Comments
Comment #1
pierrepaul commentedComment #2
ezra-g commentedThis may be related to #1841418: Undefined property: stdClass::$updated in commons_wikis_node_update() (see comment 3).
Comment #3
pierrepaul commentedI'm not sure you're gonna like my patch, but I'm welcome to any changes to it.
Currently we were adding a #submit function on the action button. The delete form has #submit on the form itself, having a #submit in the button seems to override the $form['#submit'] when it's set.
I could also check if $form['action']['submit']['#submit'] is set, but I found this way more self-explanatory.
Comment #4
ezra-g commentedThanks, Pierre Paul.
I committed a more concise fix: http://drupalcode.org/project/commons_groups.git/blobdiff/fa3740e27e2331....