I am working with a webform that is intended to be edited by a panel of administrators after it is submitted. After testing out the webform_revisions module I noticed that the revision history of a submission always displays the author of the submission rather than the author of the revision.

Is this behavior by design? If so, it would be nice to be able to see which users are responsible for which edits in the revision history tab. It appears the relevant code in webform_revisions.module is around line 360:

    "data" => array(
      l(format_date($submitted), "node/$nid/submission/$sid") . " by " . l($new_user->name, "user/$uid") . $comment,
      "<em>" . t("current revision") . "</em>",
      "",
    ),

I'd assumed $uid to be the logged-in user making the edits rather than the original author of the submission, but I must be mistaken. Is there a different variable I should be using?

If it helps anyone understand the question, this webform is meant to accommodate room requests that are "approved" by a panel of administrators (who may also leave more verbose feedback in the revision for the submitter and other administrators to see).

Comments

richardp’s picture

Status: Active » Needs work

Sorry for the slow reply!

I think this is a great idea. I will see if I can figure out a way to make it work. In order to put this functionality in, I will need to start keeping track of the "revision author" per revision, in the database. It doesn't seem too difficult.

Thanks,
Richard

tisteegz’s picture

Issue summary: View changes

Should this work yet in the 7 version?