Skip to content

Commit

Permalink
Merge pull request #423 from silverstripe-terraformers/bugfix/html-tags
Browse files Browse the repository at this point in the history
Update fields containing tags to use `DBHTMLText`
  • Loading branch information
robbieaverill authored Apr 8, 2020
2 parents 9c58489 + 314cff6 commit 71e1351
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Extensions/WorkflowEmbargoExpiryExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use SilverStripe\ORM\DataExtension;
use SilverStripe\ORM\DataQuery;
use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\ORM\FieldType\DBHTMLText;
use SilverStripe\ORM\Queries\SQLSelect;
use SilverStripe\Security\Member;
use SilverStripe\Security\Permission;
Expand Down Expand Up @@ -126,20 +127,20 @@ public function updateCMSFields(FieldList $fields)
'DesiredPublishDate',
_t('WorkflowEmbargoExpiryExtension.REQUESTED_PUBLISH_DATE', 'Requested publish date')
)->setRightTitle(
_t(
DBHTMLText::create()->setValue(_t(
'WorkflowEmbargoExpiryExtension.REQUESTED_PUBLISH_DATE_RIGHT_TITLE',
'To request this page to be <strong>published immediately</strong> '
. 'leave the date and time fields blank'
)
))
),
$ut = DatetimeField::create(
'DesiredUnPublishDate',
_t('WorkflowEmbargoExpiryExtension.REQUESTED_UNPUBLISH_DATE', 'Requested un-publish date')
)->setRightTitle(
_t(
DBHTMLText::create()->setValue(_t(
'WorkflowEmbargoExpiryExtension.REQUESTED_UNPUBLISH_DATE_RIGHT_TITLE',
'To request this page to <strong>never expire</strong> leave the date and time fields blank'
)
))
),
DatetimeField::create(
'PublishOnDate',
Expand Down

0 comments on commit 71e1351

Please sign in to comment.