That comment is obsolete. setDefinition does what it's supposed to do, which is to always update the definition.
In the declareField and declareContainers methods we do the checks for changes. And in the case of bigtext default values longer than 255 characters we always update them.
Regards, Serge Huber.
[EMAIL PROTECTED] wrote:
Field definitions are always updated although they haven't been changed.
In the code org.jahia.registries.JahiaFieldDefinitionsRegistry there is a comment in setDefinition() saying
// check if the field def has changed
But this check isn't really done and the field definitions are always deleted from the database and inserted again. Is that done on purpose?
Greetings,
Benjamin Papez
