mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02: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.'))
|
->setConduitDescription(pht('Retitle the blog.'))
|
||||||
->setConduitTypeDescription(pht('New blog title.'))
|
->setConduitTypeDescription(pht('New blog title.'))
|
||||||
->setTransactionType(PhameBlogNameTransaction::TRANSACTIONTYPE)
|
->setTransactionType(PhameBlogNameTransaction::TRANSACTIONTYPE)
|
||||||
|
->setIsRequired(true)
|
||||||
->setValue($object->getName()),
|
->setValue($object->getName()),
|
||||||
id(new PhabricatorTextEditField())
|
id(new PhabricatorTextEditField())
|
||||||
->setKey('subtitle')
|
->setKey('subtitle')
|
||||||
|
|
|
@ -98,6 +98,7 @@ final class PhamePostEditEngine
|
||||||
->setConduitDescription(pht('Retitle the post.'))
|
->setConduitDescription(pht('Retitle the post.'))
|
||||||
->setConduitTypeDescription(pht('New post title.'))
|
->setConduitTypeDescription(pht('New post title.'))
|
||||||
->setTransactionType(PhamePostTitleTransaction::TRANSACTIONTYPE)
|
->setTransactionType(PhamePostTitleTransaction::TRANSACTIONTYPE)
|
||||||
|
->setIsRequired(true)
|
||||||
->setValue($object->getTitle()),
|
->setValue($object->getTitle()),
|
||||||
id(new PhabricatorTextEditField())
|
id(new PhabricatorTextEditField())
|
||||||
->setKey('subtitle')
|
->setKey('subtitle')
|
||||||
|
|
|
@ -34,9 +34,9 @@ final class PhamePostTransaction
|
||||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||||
$tags[] = self::MAILTAG_SUBSCRIBERS;
|
$tags[] = self::MAILTAG_SUBSCRIBERS;
|
||||||
break;
|
break;
|
||||||
case self::TYPE_TITLE:
|
case PhamePostTitleTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_SUBTITLE:
|
case PhamePostSubtitleTransaction::TRANSACTIONTYPE:
|
||||||
case self::TYPE_BODY:
|
case PhamePostBodyTransaction::TRANSACTIONTYPE:
|
||||||
$tags[] = self::MAILTAG_CONTENT;
|
$tags[] = self::MAILTAG_CONTENT;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue