Last modified: 2014-03-28 10:12:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38270, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36270 - Format=sum, result on screen different from result as property
Format=sum, result on screen different from result as property
Status: RESOLVED INVALID
Product: MediaWiki extensions
Classification: Unclassified
SemanticResultFormats (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Jeroen De Dauw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-26 13:32 UTC by Ad Strack van Schijndel
Modified: 2014-03-28 10:12 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ad Strack van Schijndel 2012-04-26 13:32:30 UTC

    
Comment 1 Ad Strack van Schijndel 2012-04-26 13:34:54 UTC
I've got the following code:

{{#subobject:testNumbers
|Page={{PAGENAME}}
|Amount=10000
}}
{{#subobject:testNumbers
|Page={{PAGENAME}}
|Amount=20000
}}
{{#subobject:testNumbers
|Page={{PAGENAME}}
|Amount=30000
}}
[[Amount::{{#ask: [[Page::{{PAGENAME}}]]
|?Amount
|format=sum
}}]]

The result of the sum on the screen is 60000. The property 'Amount' of the page shows 60.
Language is Dutch.
Comment 2 Yaron Koren 2012-04-26 13:56:44 UTC
My strong guess is that the #ask is returning the value "60.000", because your wiki is in Dutch, and the "[[Amount::" call is getting confused by that, thinking that it means 60. The issue with "," vs. "." as number separators has caused problems in SMW before.
Comment 3 Ad Strack van Schijndel 2012-04-26 14:11:24 UTC
You're right, indeed it returned 60.000. 
And indeed if I do [[Amount::60.000]] it is stored as 60 as well.
I'll submit it as an SMW bug.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links