mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 02:32:42 +01:00
Clean up some Phame transaction edit bugs
Summary: Ref T12685. Sets required on required fields, cleans up mailtags on PhamePost Test Plan: Create a new blog, post. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T12685 Differential Revision: https://secure.phabricator.com/D17850
This commit is contained in:
parent
bcd87e0e3f
commit
ade380530f
3 changed files with 5 additions and 3 deletions
|
@ -76,6 +76,7 @@ final class PhameBlogEditEngine
|
|||
->setConduitDescription(pht('Retitle the blog.'))
|
||||
->setConduitTypeDescription(pht('New blog title.'))
|
||||
->setTransactionType(PhameBlogNameTransaction::TRANSACTIONTYPE)
|
||||
->setIsRequired(true)
|
||||
->setValue($object->getName()),
|
||||
id(new PhabricatorTextEditField())
|
||||
->setKey('subtitle')
|
||||
|
|
|
@ -98,6 +98,7 @@ final class PhamePostEditEngine
|
|||
->setConduitDescription(pht('Retitle the post.'))
|
||||
->setConduitTypeDescription(pht('New post title.'))
|
||||
->setTransactionType(PhamePostTitleTransaction::TRANSACTIONTYPE)
|
||||
->setIsRequired(true)
|
||||
->setValue($object->getTitle()),
|
||||
id(new PhabricatorTextEditField())
|
||||
->setKey('subtitle')
|
||||
|
|
|
@ -34,9 +34,9 @@ final class PhamePostTransaction
|
|||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||
$tags[] = self::MAILTAG_SUBSCRIBERS;
|
||||
break;
|
||||
case self::TYPE_TITLE:
|
||||
case self::TYPE_SUBTITLE:
|
||||
case self::TYPE_BODY:
|
||||
case PhamePostTitleTransaction::TRANSACTIONTYPE:
|
||||
case PhamePostSubtitleTransaction::TRANSACTIONTYPE:
|
||||
case PhamePostBodyTransaction::TRANSACTIONTYPE:
|
||||
$tags[] = self::MAILTAG_CONTENT;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue