Entity queue allows duplicate values/ Entity Queue Dragable widget allows duplicate records

Steps to reproduce

1] Enable entity queue module
2] Go to Administrator Menu => Structure => Entity Queue => +Add Entity Queue (Create new entity queue)
3] Once entity queue created "/admin/structure/entityqueue" click on edit items.
4] Add items, try with duplicate Item, entity queue supports duplicate records.

Accepted Criteria:
Record Should be unique.

Actual result:

Supports duplicate records.

Issue fork 1240856-3197148

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    Command icon Show commands

    Start within a Git clone of the project using the version control instructions.

    Or, if you do not have SSH keys set up on git.drupalcode.org:

      1 hidden branch
    • 3197148-provide-a-way Comparecompare

    Comments

    chandravilas’s picture

    chandravilas’s picture

    virajrajankar’s picture

    Status: Active » Needs review
    virajrajankar’s picture

    Project: Entity queue » Entityqueue
    Version: » 8.x-1.2

    tagging to correct module

    amateescu’s picture

    Title: Entity queue allows duplicate values/ Entity Queue Dragable widget allows duplicate records » Provide a way to disallow duplicate values in a subqueue
    Category: Bug report » Feature request
    Priority: Major » Normal
    Status: Needs review » Active

    Unfortunately this is a limitation of core's Entity Reference field, which allows duplicate values. Until that is fixed, you might want to use the Entity Reference Validators module.

    I'll keep this issue open as a feature request, in case someone has time to implement a (configurable) way to solve this.

    Tobias März made their first commit to this issue’s fork.

    Tobias März changed the visibility of the branch 3197148-provide-a-way to hidden.

    anil.sharma’s picture

    Added error message.

    phubear’s picture

    Version: 8.x-1.2 » 8.x-1.9
    Assigned: chandravilas » Unassigned
    Category: Feature request » Task
    Status: Active » Needs review
    StatusFileSize
    new3.14 KB

    Following up on patch from previous comment, I adjusted it a bit as some scenarios caused the error message to not be displayed correctly from ajax submit function.

    kmani’s picture

    ignore this patch and added another one in below with error message

    kmani’s picture

    StatusFileSize
    new1.26 KB
    kmani’s picture

    StatusFileSize
    new1.28 KB

    There is an error message issue in above patch and updated