@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Add a header warning to revisions that need a legal document signature

Summary: This supplements the footer warning and makes it more visible for authors.

Test Plan: {F173277}

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9794

+12
+12
src/applications/differential/customfield/DifferentialRequiredSignaturesField.php
··· 130 130 return false; 131 131 } 132 132 133 + public function getWarningsForRevisionHeader(array $handles) { 134 + if (!$this->haveAnyUnsignedDocuments()) { 135 + return array(); 136 + } 137 + 138 + return array( 139 + pht( 140 + 'This revision can not be accepted until the required legal '. 141 + 'agreements have been signed.'), 142 + ); 143 + } 144 + 133 145 134 146 }