Page MenuHomePhabricator

DuplicateReferences fails when the statement is in edit mode
Closed, ResolvedPublic

Description

When the insert reference link added by Gadget-DuplicateReferences.js is clicked on a statement that is in edit mode, it fails with an error as shown in the screenshot below.

w4.png (690×1 px, 53 KB)

Event Timeline

I propose the following patch to Gadget-DuplicateReferences.js to handle statements in edit mode differently. If the statement is in edit mode (i.e. the wb-edit class is present), the reference is added but not saved and the statement remains in edit mode.

This seems to be working now, at least for existing statements?

Lydia_Pintscher claimed this task.
Lydia_Pintscher subscribed.

Setting to resolved based on @Sjoerddebruin's comment.