Skip to content

Folder delete asks twice, and the second confirmation posts the delete to the Companies module #432

Closed

Description

@caseysoftware

Found on the dev-6.0.0 branch (local, at 9bd3a1e0) during the lib/ cleanup. It may be on master too: the same code is there.

delIt() in modules/files/addedit_folder.php (L63–79) has two independent confirm() blocks:

  1. "Delete Folder" → sets del=1 and submits folderFrm (the normal path).
  2. A second "Delete Folder?" → posts dosql=do_folder_aed&del=1 to ?m=companies and then redirects to Companies.

Clicking OK on the first starts a submit, then the second prompt appears. Cancelling the first still offers the second, which sends the delete to the wrong module.

Fix: keep only the first block. Related: #410 (other problems on the same page).

Activity

  1. added a commit that references this issue on Oct 21, 2026
    83c993b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions