diff --git a/Hooks.php b/Hooks.php index 6fa90bead..4112c47c4 100644 --- a/Hooks.php +++ b/Hooks.php @@ -495,7 +495,7 @@ class EchoHooks { // Edit threshold notifications are sent to the agent 'extra' => array( 'notifyAgent' => true, - 'thresholdCount' => $thresholdCount, + 'editCount' => $thresholdCount, ) ) ); diff --git a/includes/formatters/EditThresholdPresentationModel.php b/includes/formatters/EditThresholdPresentationModel.php index e92ecdcc8..7857e6852 100644 --- a/includes/formatters/EditThresholdPresentationModel.php +++ b/includes/formatters/EditThresholdPresentationModel.php @@ -16,4 +16,8 @@ class EchoEditThresholdPresentationModel extends EchoEventPresentationModel { 'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text() ); } + + public function canRender() { + return $this->event->getTitle() !== null; + } }