Skip to content

Commit

Permalink
Merge pull request #1263 from superdesk/SWP-2305
Browse files Browse the repository at this point in the history
 Use description_html instead of description_text for lead
  • Loading branch information
IvanJelicSF authored Jul 3, 2024
2 parents d8aa637 + 535b060 commit 9796401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ SWP\Component\Bridge\Model\BaseContent:
groups: [api]
description:
expose: true
serialized_name: description_text
serialized_name: description_html
type: string
groups: [api]
keywords:
Expand Down
2 changes: 1 addition & 1 deletion src/SWP/Bundle/CoreBundle/Tests/ContentPushTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ public function testIfArticleHasValues()

$content = json_decode($client->getResponse()->getContent(), true);
self::assertArrayHasKey('lead', $content);
self::assertEquals('some abstract text', $content['lead']);
self::assertEquals('<p><b><u>some abstract text</u></b></p>', $content['lead']);
self::assertArrayHasKey('keywords', $content);
self::assertEquals(['name' => 'keyword1', 'slug' => 'keyword1'], $content['keywords'][0]);
self::assertEquals(['name' => 'keyword2', 'slug' => 'keyword2'], $content['keywords'][1]);
Expand Down

0 comments on commit 9796401

Please sign in to comment.