craftcms / craftcms/cms

Edit asset in modal view on entry always show Default Upload Location volumes field layout

Open
#4,012 2 comments 0 reactions 1 assignee View on GitHub

@andris-sevcenko is already working on this.

Since Mar 19, 2019.

Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

Description

Not sure if this is the intended behaviour or not, but this seems like a bug to me.

I've created two volumes where one of the volumes have additional field layout.
image

Images:
image

I then create a field that allows files from both volumes and set the Default Upload Location to Images:
image

This seems to result in that all assets in modal view on an entry gets the addition field layout attached to it.
On the screenshot below only the image should have the Description field.
image

If I set the Default Upload Location to Videos it works as expected (image get the extra field, video does not).

In the Asset view, everything is correct:
image

image

Steps to reproduce

Follow the screenshots above.

Additional info
  • Craft version: 3.1.18
  • PHP version: 7.2
  • Database driver & version:MySQL 5.7
  • Plugins & versions: N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.