Merge "Fix UserMerge integration for use with table prefix"

This commit is contained in:
jenkins-bot 2019-03-04 07:55:07 +00:00 committed by Gerrit Code Review
commit 91bc7dcd81
2 changed files with 22 additions and 1 deletions

View file

@ -1405,7 +1405,7 @@ class EchoHooks {
$thankYouIds = [];
$thankYouRows = $dbw->select(
[ 'echo_notification', 'echo_event' ],
'echo_event.*',
EchoEvent::selectFields(),
[
'notification_user' => $newUser->getId(),
'notification_event = event_id',

View file

@ -723,4 +723,25 @@ class EchoEvent extends EchoAbstractEntity implements Bundleable {
public function getSortingKey() {
return $this->getTimestamp();
}
/**
* Return the list of fields that should be selected to create
* a new event with EchoEvent::newFromRow
* @return string[]
*/
public static function selectFields() {
return [
'event_id',
'event_type',
'event_variant',
'event_agent_id',
'event_agent_ip',
'event_page_namespace',
'event_page_title',
'event_extra',
'event_page_id',
'event_deleted',
];
}
}