mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Add caller when running query builder
Change-Id: Icc9f640ff8a67d582448e4f05a4456a54218b72d
This commit is contained in:
parent
eb414e2187
commit
8145e7ae74
|
@ -421,8 +421,8 @@ class ThreadItemStore {
|
|||
return new DatabaseThreadItemSet();
|
||||
}
|
||||
|
||||
$queryBuilder = $this->getIdsNamesBuilder();
|
||||
$queryBuilder
|
||||
$queryBuilder = $this->getIdsNamesBuilder()
|
||||
->caller( __METHOD__ )
|
||||
->where( [ 'itr_revision_id' => $revId ] )
|
||||
// We must process parents before their children in the loop later
|
||||
->orderBy( 'itr_id', SelectQueryBuilder::SORT_ASC );
|
||||
|
@ -617,6 +617,7 @@ class ThreadItemStore {
|
|||
'itp_items_id' => $itemsIds[ $item->getId() ],
|
||||
'itp_page_id' => $rev->getPageId(),
|
||||
] )
|
||||
->caller( $method )
|
||||
->fetchRow();
|
||||
if ( $itemPagesRow === false ) {
|
||||
$dbw->newInsertQueryBuilder()
|
||||
|
|
Loading…
Reference in a new issue