Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9394

Add attachment on the fly when inserting a link fail if the new file is not visible due to the scroll bar

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.11, 4.2.0
    • 4.1.6
    • Général
    • None
    • 4.2 M11

      How to reproduce

      • Create a contents article
      • Put approximately 20 upload attachments (.doc, .doc, .pdf..) in the contents
      • An error message appears « le fichier que vous venez d’insérer a été correctement ajouté mais n’est pas visible car il n’est pas du type attendu ».
      • Click on ok
      • The file is uploaded, select it from the list
      • Click on ok

      There is the same error with Resource Explorer

          [CMS-9394] Add attachment on the fly when inserting a link fail if the new file is not visible due to the scroll bar

          Issue is on ChooseAttachmentFile#_insertAttachmentCb2 and ChooseResource#_uploadFileCb2

          Since filters are done on server side, this is useless to check `isVisible` property to determine if the inserted file matches the current filter. Moreover this could lead to error in case of a big tree because 'isVisible" may be false during tree loading or scroll

          Laurence Aumeunier added a comment - Issue is on ChooseAttachmentFile#_insertAttachmentCb2 and ChooseResource#_uploadFileCb2 Since filters are done on server side, this is useless to check `isVisible` property to determine if the inserted file matches the current filter. Moreover this could lead to error in case of a big tree because 'isVisible" may be false during tree loading or scroll

            laurence Laurence Aumeunier
            afrancois Anastasia François
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: