Created on 16 October 2023, 9 months ago
Updated 11 January 2024, 6 months ago

Delete Empty Folder

When you delete the last file in a folder it does not allow you to delete the folder unless after a refresh, which loses the position it was in

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇮🇹Italy Skrudge

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Skrudge
  • 🇨🇭Switzerland ytsurk Switzerland

    Thank you for reporting this problem, we'll have a look at it soonish.

  • 🇮🇹Italy Skrudge

    any news about the issue "delete folder"

    Thank's

  • Status changed to Postponed: needs info 6 months ago
  • 🇨🇭Switzerland ytsurk Switzerland

    I cannot reproduce this on the 2.1.x branch.

    Sadly we do not support anymore the 2.0.x branch, please try updating to 2.1.x-betaY.

    A more descriptive way of your problem would also help in reproducing it.

    What means allow? What do you see when you right click the folder after deleting all containing medias?
    What version of Drupal and our module are you using?

  • 🇮🇹Italy Skrudge

    even after updating to version 2.1.0-beta3 it is not possible to delete folders without refreshing the page, and losing the position. The Admin Theme I use is: Adminimal 8.x-1.7 (administration theme). When I Right Click, after deleting the last file in the folder, I see this:

    after reloading the page, and losing the path, I can successfully delete the empty folder

  • 🇨🇭Switzerland ytsurk Switzerland

    Thank you for further information, Skrudge.

    So I try harder to reproduce ...

  • Status changed to Closed: cannot reproduce 6 months ago
  • 🇨🇭Switzerland ytsurk Switzerland

    Do you somehow alter jsTree's menu_item's?

    I'm not aware of a check this module does regarding a directories emptiness, our code we will always add a "Delete" context menu entry,
    see here https://git.drupalcode.org/project/media_directories/-/blob/2.1.x/module...

    Are you using any patches from other issues or use custom code? You would need to intercept the delete command and refresh the context menu accordingly ..

  • 🇮🇹Italy Skrudge

    name : vakata/jstree
    descrip. :
    keywords :
    versions : * 3.3.15
    type : drupal-library

Production build 0.69.0 2024