Last modified: 2014-10-29 08:47:19 UTC
When creating a statement through the Wikidata ui the wbformatvalue api gets called twice with exactly the same parameters. Browser: Firefox 32.0.2 Inspected with: Firebug 2.0.4
Created attachment 16533 [details] Screenshot of Firebug console
Investigated on that: The problem occurs only when adding a new statement via the "global" "add" button--in contrast to adding a statement to an existing statement/claim group. Behaviour: The statementview gets recreated twice after saving, with one of them getting dumped immediately. The statementview widgets are controlled by what is called claimlistview at the moment. After a new statementview has been saved, the claimlistview is supposed to re-add the re-initialized statementview to its list. Consequently, the statementview is re-added to the claimlistview that acts as container within the "pending statement" section. However, the "pending statement" section is completely dumped immediately since the parent claimgrouplistview creates a new claimgroup for the statement--or adds the statement to an existing claimgroup respectively. Solution: In the specific case, the claimgrouplistview would need to abort the "afterstopediting" procedure imposed by the claimlistview.