Clearing the textarea attribute field in Assets will not lead to an empty field

XMLWordPrintable

    • 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

      1. Create an object schema in Assets
      2. Create an object type (i.e., Computer) and add one textarea attribute (i.e., Purpose) to this type
      3. Create an object of that type and enter some text in the textarea attribute field
      4. Save the object
      5. edit the object and remove all (visible) text from the textarea attribute field (i.e., Purpose)
      6. 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.

      1. Assets > Search for Object
      2. Filter the objects that you want to delete the TextArea attribute
      3. Bulk > Edit
      4. 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

            Assignee:
            Unassigned
            Reporter:
            Conny Postma (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: