Page MenuHomePhabricator

Can't edit claim value once save clicked and got error
Closed, ResolvedPublic1 Estimated Story Points

Description

Procedure to reproduce:

  1. Start creating a new claim on an item.
  2. Use a URL property such as "official website"
  3. Add an invalid url such as "www.thebicyclingguitarist.net"
  4. Click save
  5. Receive "Malformed URL: www.thebicyclingguitarist.net" error
  6. Try to edit / fix the URL and realise you can't, because the text field is not editable anymore. You could just cancel and restart.

This also happens with the other data types.

Event Timeline

Addshore raised the priority of this task from to Needs Triage.
Addshore updated the task description. (Show Details)
Addshore added subscribers: Addshore, Lydia_Pintscher.
Lydia_Pintscher added a project: Wikidata.
Lydia_Pintscher moved this task from incoming to ready to go on the Wikidata board.
Lydia_Pintscher added a subscriber: Snaterlicious.
Lydia_Pintscher renamed this task from Can't edit claim value once save clicked and got Malformed URL error to Can't edit claim value once save clicked and got error.Jun 22 2015, 8:56 AM
Lydia_Pintscher updated the task description. (Show Details)
Lydia_Pintscher added a subscriber: WMDE-Fisch.

I think the relevant place in our code base is jquery.ui.EditableTemplatedWidget.js. In line 129 the stopEditing function calls this.disable(). I think this is the reason why the widget can not be edited any more after an error. The fix is possibly a single self.enable(); line.

Change 223791 had a related patch set uploaded (by Jonas Kress (WMDE)):
Reenable widget after save failed

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

I fixed that one, but unfortunately property selector stays disabled. So if you chose the wrong selector and try to change it after running into a save error.....

Change 223791 merged by jenkins-bot:
Reenable widget after save failed

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

thiemowmde claimed this task.
thiemowmde moved this task from Backlog to Done on the Wikidata-Sprint-2015-06-30 board.