Forms that require a confirmation regularly append /confirm to the path, for example admin/build/modules/uninstall/confirm. However, the journal entry should actually be displayed one level above, at admin/build/modules/uninstall. Attached patch checks for a trailing /confirm in the path and strips it when found.
Not sure though, if this can be easily generalized that way. And an upgrade path for existing journal entries is missing here, too.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | journal.action.patch | 2.97 KB | sun |
| journal.patch | 731 bytes | smk-ka |
Comments
Comment #1
sunIt seems that
admin/build/modules(system_modules()) is a special form, since it sends form values to the pathadmin/build/modules/list/confirm(stillsystem_modules()), which then invokes the confirm formsystem_modules_confirm_form(). That's pretty ugly code in core.However, I think we could store the real location of a form already in the $form array via form_alter()... I'll go and check that out now.
Comment #2
sunYeah, this works out.
During testing I discovered that journal entries for the form on admin/build/block are not saved. However, seems to be a different issue, because I did not find any entries for that path in Journal logs of existing sites (and I'm pretty sure I've entered journal entries on that page before).
Comment #3
sunCommitted with a small fix in db update function.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.