Last modified: 2012-11-01 18:12:24 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 ;)
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.
*** Bug 31344 has been marked as a duplicate of this bug. ***