Differential D20121 Diff 48057 src/applications/search/engineextension/PhabricatorFulltextIndexEngineExtension.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/engineextension/PhabricatorFulltextIndexEngineExtension.php
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | private function getTransactionVersion($object) { | ||||
} | } | ||||
return $xaction_row['id']; | return $xaction_row['id']; | ||||
} | } | ||||
private function getCommentVersion($object) { | private function getCommentVersion($object) { | ||||
$xaction = $object->getApplicationTransactionTemplate(); | $xaction = $object->getApplicationTransactionTemplate(); | ||||
try { | |||||
$comment = $xaction->getApplicationTransactionCommentObject(); | $comment = $xaction->getApplicationTransactionCommentObject(); | ||||
if (!$comment) { | if (!$comment) { | ||||
return 'none'; | return 'none'; | ||||
} | } | ||||
} catch (Exception $ex) { | |||||
return 'none'; | |||||
} | |||||
$comment_row = queryfx_one( | $comment_row = queryfx_one( | ||||
$comment->establishConnection('r'), | $comment->establishConnection('r'), | ||||
'SELECT c.id FROM %T x JOIN %T c | 'SELECT c.id FROM %T x JOIN %T c | ||||
ON x.phid = c.transactionPHID | ON x.phid = c.transactionPHID | ||||
WHERE x.objectPHID = %s | WHERE x.objectPHID = %s | ||||
ORDER BY c.id DESC LIMIT 1', | ORDER BY c.id DESC LIMIT 1', | ||||
$xaction->getTableName(), | $xaction->getTableName(), | ||||
Show All 28 Lines |