Skip to content

Commit

Permalink
[FIX] Display the node title if set into the CMIS container.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmignon committed Mar 17, 2017
1 parent ab5d052 commit 8e67570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
10.0.?.?.? (?)
~~~~~~~~~~~~~~

* Fix: Display the node title if set into the CMIS container.
* Fix: A name in CMIS can not ends with a dot. On the CMIS backend the
'sanitize_cmis_name' method removes this character if it's found at the
end of the string to sanitize and this case is detected by the method
Expand Down
4 changes: 2 additions & 2 deletions cmis_web/static/src/js/form_widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
this.name = this.getSuccinctProperty('cmis:name', cmis_object);
this.mimetype = this.getSuccinctProperty('cmis:contentStreamMimeType', cmis_object);
this.baseTypeId = this.getSuccinctProperty('cmis:baseTypeId', cmis_object);
this.title = this.getSuccinctProperty('cmis:title', cmis_object) || '';
this.title = this.getSuccinctProperty('cm:title', cmis_object) || '';
this.description = this.getSuccinctProperty('cmis:description', cmis_object);
this.lastModificationDate = this.getSuccinctProperty('cmis:lastModificationDate', cmis_object);
this.lastModifiedBy = this.getSuccinctProperty('cmis:lastModifiedBy', cmis_object);
Expand Down Expand Up @@ -854,7 +854,7 @@ var CmisMixin = {
orders_by.push('cmis:baseTypeId DESC,cmis:name ' + sort_order);
break;
case 2:
orders_by.push('cmis:title ' + sort_order);
orders_by.push('cm:title ' + sort_order);
break;
case 3:
orders_by.push('cmis:description ' + sort_order);
Expand Down

0 comments on commit 8e67570

Please sign in to comment.