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:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user