Page MenuHomePhabricator

Editing a statement doesn't work after removing the only reference
Closed, ResolvedPublic1 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 created this task.Jun 23 2015, 9:18 PM
Bene updated the task description. (Show Details)
Bene raised the priority of this task from to Needs Triage.
Bene added a subscriber: Bene.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 23 2015, 9:18 PM
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

Bene claimed this task.
Bene moved this task from Backlog to Review on the Wikidata-Sprint-2015-06-16 board.
Addshore closed this task as Resolved.
Addshore added a subscriber: Addshore.

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

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