Hi all,
When I add properties to a class, I need to perform "Edit Objects/Save
Objects" on all documents containing an instance of that class before
the new properties exist in those documents.
In other words, after adding a new property "myNewProp" to class
"myClass", executing
$doc.display("myNewProp")
in documents already containing instances of "myClass" returns nothing
until I do "Edit Objects/Save Objects" on those documents.
Is this the intended behaviour? It makes updating classes a little
less seemless than I expected, particularly when objects of that class
are very widespread throughout the wiki.
Is the best solution to write a script to automate the "Save Objects"
task on all relevant documents, and then execute manually it every
time I add a field to a class?
I'm using XWiki v0.9.840.
Regards,
Robin