How to preserve comments on document version update?


I've noticed that, by default, nuxeo (5.4.2) doesn't store comments when updating the version of a document. Instead, any comment you enter in this field (in Modify/Edit tab) is always replaced by the text automatically generated by nuxeo when updating a document version. Comments are only stored by nuxeo when the document version keeps unchanged, as it can be seen in the History tab.

Can this behaviour be modified so that comments are stored even when the document version has been updated, be it minor or major?


0 votes

1 answers



Hi, If you want to store any comments that needs to be stored and can be editable, then go with custom metadata or use Nuxeo's widgets for that.

Add additional row in your file edit layout, and define the widget for Comments

                    <properties mode="any">
                        <property name="nxl_colspan_0">1</property>
 <widget name="comment_widget" type="text">
                <label mode="any">Comments</label>
        _   <properties widgetMode="edit">
                <property name="required">true</property>

You can also refer my answer for more info.

Kindly revert for clarifications.

0 votes