Commit 89bff69a69177b64a256e8c8528f81018cbc09cf
1 parent
3eb55c2b
intermediate commit
Showing
3 changed files
with
7 additions
and
3 deletions
lib/api/ktcmis/objecttypes/CMISDocumentObject.inc.php
| ... | ... | @@ -121,7 +121,8 @@ class CMISDocumentObject extends CMISBaseObject { |
| 121 | 121 | . $objectProperties['document_id']); |
| 122 | 122 | // NOTE what about instead creating a downloadable version with appropriate link? see ktapi::download_document |
| 123 | 123 | // also ktapidocument::get_download_url |
| 124 | - $this->_setPropertyInternal('Uri', $uri); | |
| 124 | +// $this->_setPropertyInternal('Uri', $uri); | |
| 125 | + $this->_setPropertyInternal('Uri', ''); | |
| 125 | 126 | // TODO what is this? Assuming it is the object type id, and not OUR document type? |
| 126 | 127 | $this->_setPropertyInternal('ObjectTypeId', $this->getAttribute('typeId')); |
| 127 | 128 | // Needed to distinguish type | ... | ... |
lib/api/ktcmis/objecttypes/CMISFolderObject.inc.php
| ... | ... | @@ -99,7 +99,8 @@ class CMISFolderObject extends CMISBaseObject { |
| 99 | 99 | . '/browse.php?fFolderId=' |
| 100 | 100 | . $objectProperties['id']); |
| 101 | 101 | // TODO this url is probably incorrect...needs to be checked |
| 102 | - $this->_setPropertyInternal('Uri', $uri); | |
| 102 | +// $this->_setPropertyInternal('Uri', $uri); | |
| 103 | + $this->_setPropertyInternal('Uri', ''); | |
| 103 | 104 | // TODO what is this? Assuming it is the object type id, and not OUR document type? |
| 104 | 105 | $this->_setPropertyInternal('ObjectTypeId', $this->getAttribute('typeId')); |
| 105 | 106 | // Needed to distinguish type | ... | ... |
webservice/atompub/cmis/KT_cmis_atom_service_helper.inc.php
| ... | ... | @@ -191,7 +191,9 @@ class KT_cmis_atom_service_helper { |
| 191 | 191 | { |
| 192 | 192 | $propElement = $feed->newElement('cmis:' . $property['type']); |
| 193 | 193 | $propElement->appendChild($feed->newAttr('cmis:name', $propertyName)); |
| 194 | - $feed->newField('cmis:value', CMISUtil::boolToString($property['value']), $propElement); | |
| 194 | + if (!empty($property['value'])) { | |
| 195 | + $feed->newField('cmis:value', CMISUtil::boolToString($property['value']), $propElement); | |
| 196 | + } | |
| 195 | 197 | $propertiesElement->appendChild($propElement); |
| 196 | 198 | } |
| 197 | 199 | ... | ... |