Skip to content

4.8: {id} in upload filenames, record ids, copy, joined fields - #26

Merged
tombrain merged 7 commits into
masterfrom
upload-id-placeholder
Nov 1, 2026
Merged

tombrain merged 7 commits into
masterfrom
upload-id-placeholder

Conversation

@tombrain

@tombrain tombrain commented Nov 1, 2026

Copy link
Copy Markdown
Owner

Features for 4.8.0 (details in CHANGELOG.md):

  • {id} in the filename of uploadField() and resizeImage() is replaced by the id of the record; a new record uploads the file after the INSERT
  • dbFormHandler::getEditId(), getNewId() and getRecordId()
  • dbFormHandler::setCopyOf(), isCopy(), getCopyOfId(): copy a record, saved as an INSERT (no primary keys, no upload files, with junction data)
  • FormHandler::joinNextFields(): several fields in one row of the mask
  • dbFormHandler keeps its database adapter after saving, getDatabaseAdapter()
  • Security: cancelButton() escapes its URL

Tests (715) and PHPStan pass locally.

🤖 Generated with Claude Code

@tombrain
tombrain merged commit eb33b3a into master Nov 1, 2026
12 checks passed
@tombrain
tombrain deleted the upload-id-placeholder branch November 1, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant