1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 09:18:48 +02:00

Fix flipped open/closed status for Diviner atoms in search index

Summary: Fixes T12258. I think these constants are just flipped.

Test Plan: Kinda winged it.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12258

Differential Revision: https://secure.phabricator.com/D17346
This commit is contained in:
epriestley 2017-02-13 13:06:03 -08:00
parent 006d74fde2
commit 6f37685a75

View file

@ -33,8 +33,8 @@ final class DivinerLiveSymbolFulltextEngine
$document->addRelationship( $document->addRelationship(
$atom->getGraphHash() $atom->getGraphHash()
? PhabricatorSearchRelationship::RELATIONSHIP_CLOSED ? PhabricatorSearchRelationship::RELATIONSHIP_OPEN
: PhabricatorSearchRelationship::RELATIONSHIP_OPEN, : PhabricatorSearchRelationship::RELATIONSHIP_CLOSED,
$atom->getBookPHID(), $atom->getBookPHID(),
DivinerBookPHIDType::TYPECONST, DivinerBookPHIDType::TYPECONST,
PhabricatorTime::getNow()); PhabricatorTime::getNow());