fix adding workflow log

This commit is contained in:
Uwe Steinmann 2024-04-22 17:47:11 +02:00
parent 6a13d61abc
commit 0044cd6a19

View File

@ -201,7 +201,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
if($attributes = $folder->getAttributes()) { if($attributes = $folder->getAttributes()) {
foreach($attributes as $attribute) { foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition(); $attrdef = $attribute->getAttributeDefinition();
echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".wrapWithCData($attribute->getValue())."</attr>\n"; echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".wrapWithCData($attribute->getValueAsString())."</attr>\n";
} }
} }
$notifications = $folder->getNotifyList(); $notifications = $folder->getNotifyList();
@ -276,7 +276,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
if($attributes = $document->getAttributes()) { if($attributes = $document->getAttributes()) {
foreach($attributes as $attribute) { foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition(); $attrdef = $attribute->getAttributeDefinition();
echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".wrapWithCData($attribute->getValue())."</attr>\n"; echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".wrapWithCData($attribute->getValueAsString())."</attr>\n";
} }
} }
@ -332,7 +332,7 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
if($attributes = $version->getAttributes()) { if($attributes = $version->getAttributes()) {
foreach($attributes as $attribute) { foreach($attributes as $attribute) {
$attrdef = $attribute->getAttributeDefinition(); $attrdef = $attribute->getAttributeDefinition();
echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".wrapWithCData($attribute->getValue())."</attr>\n"; echo $indent." <attr type=\"user\" attrdef=\"".$attrdef->getID()."\">".wrapWithCData($attribute->getValueAsString())."</attr>\n";
} }
} }
if($statuslog = $version->getStatusLog()) { if($statuslog = $version->getStatusLog()) {
@ -459,9 +459,11 @@ function tree($folder, $parent=null, $indent='', $skipcurrent=false) { /* {{{ */
} /* }}} */ } /* }}} */
include($myincpath."/inc/inc.Settings.php"); include($myincpath."/inc/inc.Settings.php");
include($myincpath."/inc/inc.Utils.php");
include($myincpath."/inc/inc.Init.php"); include($myincpath."/inc/inc.Init.php");
include($myincpath."/inc/inc.Extension.php"); include($myincpath."/inc/inc.Extension.php");
include($myincpath."/inc/inc.DBInit.php"); include($myincpath."/inc/inc.DBInit.php");
include($myincpath."/inc/inc.ClassAcl.php");
if(!$folderid) { if(!$folderid) {
$folderid = $settings->_rootFolderID; $folderid = $settings->_rootFolderID;