Description of the bug
In #7118 it has been discovered that when selecting images from the image library (browser), the limit for selection via ui.selectable is always the full field cardinality. Totally disregarding existing images, that have been previously inserted.
That means, we let people chose files that have to get dropped on node save. Not very intuitive, bad UX.
Steps To Reproduce
On a node type with a multi-value image field (cardinality > 1 but < unlimited).
- Open a node form
- Add some images, less than allowed
- Open the dialog again and select as many as jquery.ui will let you (cardinality)
Actual behavior
For a field that allows 3 items, you can add 5 in two runs. 2 the first time, 3 (cardinality) the second time.
Until #7119 is fixed, you'll get a TypeError on node save, but even if that wasn't the case - why letting people choose more than are allowed in the first place?
Expected behavior
I can select the remaining count of images, not more.
Additional information
Note: this is about picking from library (dialog), not uploading.
Description of the bug
In #7118 it has been discovered that when selecting images from the image library (browser), the limit for selection via ui.selectable is always the full field cardinality. Totally disregarding existing images, that have been previously inserted.
That means, we let people chose files that have to get dropped on node save. Not very intuitive, bad UX.
Steps To Reproduce
On a node type with a multi-value image field (cardinality > 1 but < unlimited).
Actual behavior
For a field that allows 3 items, you can add 5 in two runs. 2 the first time, 3 (cardinality) the second time.
Until #7119 is fixed, you'll get a TypeError on node save, but even if that wasn't the case - why letting people choose more than are allowed in the first place?
Expected behavior
I can select the remaining count of images, not more.
Additional information
Note: this is about picking from library (dialog), not uploading.