Page MenuHomePhabricator

Editing a statement doesn't work after removing the only reference
Closed, ResolvedPublic1 Estimated Story Points

Description

Steps to reproduce:

<sjoerddebruin> 1. Remove the only existing reference
<sjoerddebruin> 2. Try to add a qualifier to the statement
<sjoerddebruin> 3. It never saves, stays on "saving..."

The javascript console gives the following error:

Error: Parameter not specified properly

throw new Error( 'Parameter not specified properly' );

RepoApi.js (Zeile 480)

Which is

setClaim: function( claim, baseRevId, index ) {
	if( typeof claim !== 'object' || typeof baseRevId !== 'number' ) {
		throw new Error( 'Parameter not specified properly' );
	}
	...

Event Timeline

Bene raised the priority of this task from to Needs Triage.
Bene updated the task description. (Show Details)
Bene subscribed.
Bene triaged this task as High priority.Jun 23 2015, 9:26 PM
Bene set Security to None.
Bene added a subscriber: Lydia_Pintscher.

Change 220424 had a related patch set uploaded (by Bene):
Fix removing of references not updating revid properly

https://gerrit.wikimedia.org/r/220424

Addshore moved this task from Review to Done on the Wikidata-Sprint-2015-06-16 board.
Addshore subscribed.

Change 220424 merged by jenkins-bot:
Fix removing of references not updating revid properly

https://gerrit.wikimedia.org/r/220424