mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Conpherence - fix add participant / remove participant form
Summary: Ref T6713. We were dropping latest transaction ID. This should fix the "easy" part of T6713. Test Plan: tried to add participants and it worked! (removing participants only allows yourself, but that worked too.) Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6713 Differential Revision: https://secure.phabricator.com/D10952
This commit is contained in:
parent
9d062044e7
commit
d5e7cd5590
1 changed files with 11 additions and 1 deletions
|
@ -212,6 +212,9 @@ final class ConpherenceUpdateController
|
|||
return id(new AphrontDialogView())
|
||||
->setTitle(pht('Add Participants'))
|
||||
->addHiddenInput('action', 'add_person')
|
||||
->addHiddenInput(
|
||||
'latest_transaction_id',
|
||||
$request->getInt('latest_transaction_id'))
|
||||
->appendChild($form);
|
||||
}
|
||||
|
||||
|
@ -241,8 +244,11 @@ final class ConpherenceUpdateController
|
|||
return id(new AphrontDialogView())
|
||||
->setTitle(pht('Remove Participants'))
|
||||
->addHiddenInput('action', 'remove_person')
|
||||
->addHiddenInput('__continue__', true)
|
||||
->addHiddenInput('remove_person', $remove_person)
|
||||
->addHiddenInput(
|
||||
'latest_transaction_id',
|
||||
$request->getInt('latest_transaction_id'))
|
||||
->addHiddenInput('__continue__', true)
|
||||
->appendChild($body);
|
||||
}
|
||||
|
||||
|
@ -250,6 +256,7 @@ final class ConpherenceUpdateController
|
|||
ConpherenceThread $conpherence,
|
||||
$error_view) {
|
||||
|
||||
$request = $this->getRequest();
|
||||
$form = id(new PHUIFormLayoutView())
|
||||
->appendChild($error_view)
|
||||
->appendChild(
|
||||
|
@ -262,6 +269,9 @@ final class ConpherenceUpdateController
|
|||
return id(new AphrontDialogView())
|
||||
->setTitle(pht('Update Conpherence'))
|
||||
->addHiddenInput('action', 'metadata')
|
||||
->addHiddenInput(
|
||||
'latest_transaction_id',
|
||||
$request->getInt('latest_transaction_id'))
|
||||
->addHiddenInput('__continue__', true)
|
||||
->appendChild($form);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue