-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 10.3.5, 10.3.7
-
Component/s: Assets - Object, Type and Schema
-
2
-
Severity 2 - Major
-
2
Issue Summary
When clearing a textarea attribute field for any object in Assets after it has had content before, it will leave the wrapper
<div class="created-with-ak-editor content-wrapper"></div>
behind. Due to this, the field will still be displayed in our UI. The REST API (and therefore also third-party apps) will recognize the field as not empty. This can lead to undesired effects.
Steps to Reproduce
- Create an object schema in Assets
- Create an object type (i.e., Computer) and add one textarea attribute (i.e., Purpose) to this type
- Create an object of that type and enter some text in the textarea attribute field
- Save the object
- edit the object and remove all (visible) text from the textarea attribute field (i.e., Purpose)
- save the change and check the object in the UI
Expected Results
The field (i.e., Purpose) will no longer be displayed.
Actual Results
The field is still displayed without any content.
In the database table AO_8542F1_IFJ_OBJ_ATTR_VAL, the value for the field will be
<div class="created-with-ak-editor content-wrapper"></div>
Workaround
The TextArea is cleaned while using the Bulk edit feature on the Search for Objects page.
- Assets > Search for Object
- Filter the objects that you want to delete the TextArea attribute
- Bulk > Edit
- On the TextArea attribute, select: Clear all
Versions Tested
Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below:
| Testing Requirements | Version | Affected Version |
|---|---|---|
| Customers Reported Version | 10.3.7 | Yes |
| Most Recent Bug-Fix Release | ||
| Previous Major Release | ||
| Most Recent LTS | ||
| Previous Supported LTS | ||
| Other Versions.. | 10.3.5 | yes |
| 9.12.13 | no |
- Found in: 10.3. Most likely introduced with 5.13 with the change to the textarea attributes
- links to