Last modified: 2012-11-01 18:12:24 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 T32482, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30482 - Type can only be used once in multi value property
Type can only be used once in multi value property
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Semantic MediaWiki (Other open bugs)
unspecified
All All
: Unprioritized major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://sandbox.semantic-mediawiki.org...
:
: 31344 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-20 21:43 UTC by pascal
Modified: 2012-11-01 18:12 UTC (History)
3 users (show)

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


Attachments

Description pascal 2011-08-20 21:43:52 UTC
When adding a property (named: "Has old name") with the following code:

[[has type::Record]]
[[has fields::Page; Date; Date; String]]

and in a page adding the following code:

[[Has old name:: Mary; 12 August 2011; 13 August 2011; test]]

The result is:

Mary (12 August 2011, 12 August 2011, test)

In this case, the two dates are the same. If I change the code to:

[[has fields::Page; Date; Date; String]]

to:

[[has fields::Page; Date; Date; Page]]

The result will be:

Mary (12 August 2011, 12 August 2011, Mary)

I've tested this at my own (dutch) installation as well in the semantic mediawiki sandbox. Results are the same.


I really need 2 dates in this record ;)
Comment 1 Markus Krötzsch 2012-11-01 17:56:16 UTC
In recent SMW's, records should be used with property names, not with type names. For compatibility, there is a default property for every type name (so Property:Date is a property of type Date). However, this fails when using the same property multiple times. In this case (and in most other cases too) one should rather create properties with meaningful names and use them in the Record declaration. Alternatively, one can use the #subobject function which does not require any fixed global type. The behaviour of Record will not be changed.
Comment 2 Markus Krötzsch 2012-11-01 18:12:24 UTC
*** Bug 31344 has been marked as a duplicate of this bug. ***

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


Navigation
Links