1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Input WYSIWYG: Updated API testing, fixed description set issue

Fixed issue where an existing description_html field would not be
updated via 'description' input.
This commit is contained in:
Dan Brown
2023-12-22 13:17:23 +00:00
parent 00ae04e0bd
commit 2a7a81e749
4 changed files with 148 additions and 12 deletions

View File

@ -116,6 +116,7 @@ class BaseRepo
$entity->description = html_entity_decode(strip_tags($input['description_html']));
} else if (isset($input['description'])) {
$entity->description = $input['description'];
$entity->description_html = '';
$entity->description_html = $entity->descriptionHtml();
}
}