Page MenuHomePhabricator

Setting 2 columns in one transaction breaks the Task UI
Open, Needs TriagePublic

Description

Hi,
I managed to get the error when I open the task - Undefined variable: board_phid.

The reason is simple - via conduit maniphest.edit API I set 2 columns via one transaction (both columns where in different projects).

{"type":"column","value":["PHID-PCOL-zbrzdpvgmni3dxgblbgx","PHID-PCOL-vrjokvtds3qw2cezu6h7"]}

Transaction entry in DB ended up being something like this:

[{"columnPHID":"PHID-PCOL-zbrzdpvgmni3dxgblbgx","boardPHID":"PHID-PROJ-sk62b2ohwmhykjcusyam","fromColumnPHIDs":{"PHID-PCOL-euxtyti3j644vh6rsna6":"PHID-PCOL-euxtyti3j644vh6rsna6"}},{"columnPHID":"PHID-PCOL-vrjokvtds3qw2cezu6h7","boardPHID":"PHID-PROJ-64ywfx3axxzwsvvihkrb","fromColumnPHIDs":{"PHID-PCOL-4xqaswef4csi2k5p53mj":"PHID-PCOL-4xqaswef4csi2k5p53mj"}}]

If this is split up in 2 transactions - no problem, but if it's within one - Task is unopenable via UI.
I actually haven't tested what would happen if I would send 2 columns within the same project, but I assume it will break as well.

Version info:

phabricator 6765cf14f30bc17085a63c4b3d5f240177167138 (Mon, Jan 16) (branched from 50de3071acafe315d49647be31646a52511a2dc2 on upstream) 
arcanist 5763e6a4949376136b41578828f2da4801e10dba (Sat, Jan 14) 
phutil 47a4d44a0b182b99ee2a85e9255ea981b493d669 (Sat, Jan 14)