Skip to content

Error editing or deleting product groups #327

@tom-rice

Description

@tom-rice

On the /dashboard/store/products/groups page, if I tried to click the edit or trash button on any of the groups I got a javascript error such as:
Error: Syntax error, unrecognized expression: li['data-group-id=1']

Fixed by editing lines 79, 80, 83 and 84 of js/vividStoreFunctions.js in the edit and cancel functions:
Changed these:

FROM:
$("li['data-group-id="+groupID+"']")

TO:
$("li[data-group-id='"+groupID+"']")

ALSO I then hit an additional error with line 48 of that file:
var confirmDelete = confirm(vividStore.Strings.AreYouSure);
ReferenceError: vividStore is not defined
I have hardcoded that confirmation message on mine for now - perhaps you can fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions