Closed (fixed)
Project:
Media Directories
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2019 at 07:08 UTC
Updated:
24 Jan 2020 at 05:57 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gresko8 commentedAttaching a patch that fixes it by calculating the remaining items from cardinality and selection length.
Comment #3
ytsurkThanks for the catch and the patch. I'll review and merge it in tomorrow.
All this ES6 code will be downgraded to ES5 soon .. #3099106: Downgrade ES6
Comment #4
ytsurkComment #5
ytsurkI could no longer reproduce your error ... I tested with a media field having cardinality 3.
Anyway, I change here @rang501 initialization quick-fix introduced in #3101800: Javascript error when opened from CKEditor, and now properly initialize remainingItems in the object with 1.
Also formatPlural is now used the right way. FYI @gresko8
@countis not needed and will take the first argument. Also the singular translation shall not use@count, see formatPlural docs.Comment #6
ytsurkComment #7
ytsurk@rang501 - can you review this and merge it in if it fits for you, please?
Comment #9
ytsurkComment #11
ytsurkI incidentally removed the possibility to select multiple items on the overview page and fixed that here https://git.drupalcode.org/project/media_directories/commit/a3aed1a