Skip to content

File field - impossible to change folder in "Choose Existing" if before was picked subfolder #4489

@Yulyaswan

Description

@Yulyaswan

Step to reproduce:

  1. create a file field (grid, fluid, doesn't matter)
  2. click Choose existing and pick subfolder (Blog / blog_1)
  3. change Folder from top dropdown (common). Path looks -> Common / blog_1
Screen.Recording.2024-09-23.at.12.58.08.mov

The problem is when you go to the subfolder, the URL from the subfolder is added everywhere
this is how links in dropdown menu should looks:
admin.php?/cp/addons/settings/filepicker/modal&field_upload_locations=all&requested_directory=5&viewtype=list&perpage=25
and how it looks after ajax, when you go to subfolder (added directory_id=15, but shouldn't)
admin.php?/cp/addons/settings/filepicker/modal&field_upload_locations=all&requested_directory=5&directory_id=15&viewtype=list&perpage=25

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug: AcceptedBug has been confirmed, is reproducible, and ready to work on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions