orchidsoftware / orchidsoftware/platform
Matrix with Picture filed bug
Open
@tabuna is already working on this.
Since Jun 3, 2022.
Errors
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 662
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Describe the bug
Matrix duplicates images for new fields
To Reproduce
- Create Matrix with Picture field.
Matrix::make('test')
->columns([
'Picture' => 'picture',
'Text' => 'text',
])
->fields([
'picture' => Picture::make('picture')->maxFileSize(2)->targetId(),
'text' => Input::make()->type('text'),
])
- Add picture
- Save to database
- Refresh page
- Try to add new row in matrix
Expected behavior
Clear new field without image
Screenshots
Screenshot of a bug:

This happens because the matrix doesn't clear data-picture-url in template

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.