Merge "thank-you-edit: canRender for deleted page and extra fix"

This commit is contained in:
jenkins-bot 2016-03-11 19:11:58 +00:00 committed by Gerrit Code Review
commit 91a15811cb
2 changed files with 5 additions and 1 deletions

View file

@ -495,7 +495,7 @@ class EchoHooks {
// Edit threshold notifications are sent to the agent // Edit threshold notifications are sent to the agent
'extra' => array( 'extra' => array(
'notifyAgent' => true, 'notifyAgent' => true,
'thresholdCount' => $thresholdCount, 'editCount' => $thresholdCount,
) )
) )
); );

View file

@ -16,4 +16,8 @@ class EchoEditThresholdPresentationModel extends EchoEventPresentationModel {
'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text() 'label' => $this->msg( 'notification-link-thank-you-edit', $this->getViewingUserForGender() )->text()
); );
} }
public function canRender() {
return $this->event->getTitle() !== null;
}
} }