escape workflow name, fix counting recipients

This commit is contained in:
Uwe Steinmann 2021-04-30 09:31:50 +02:00
parent 4d471ed592
commit 4a678ad1ec

View File

@ -832,7 +832,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
echo "</thead><tbody>"; echo "</thead><tbody>";
foreach($wkflogt as $wkflog) { foreach($wkflogt as $wkflog) {
echo "<tr>"; echo "<tr>";
echo "<td>".$wkflog->getWorkflow()->getName()."</td>"; echo "<td>".htmlspecialchars($wkflog->getWorkflow()->getName())."</td>";
echo "<td>".$wkflog->getDate()."</td>"; echo "<td>".$wkflog->getDate()."</td>";
echo "<td>".htmlspecialchars($wkflog->getTransition()->getAction()->getName())."</td>"; echo "<td>".htmlspecialchars($wkflog->getTransition()->getAction()->getName())."</td>";
$loguser = $wkflog->getUser(); $loguser = $wkflog->getUser();
@ -1325,7 +1325,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style {
print "<thead>\n"; print "<thead>\n";
print "<tr>\n"; print "<tr>\n";
print "<th width='20%'>".(($count($receiptStatus) > 5) ? '<input type="text" id="filterRecipientsInput" placeholder="'.getMLText('type_to_filter').'">' : getMLText('name'))."</th>\n"; print "<th width='20%'>".((count($receiptStatus) > 5) ? '<input type="text" id="filterRecipientsInput" placeholder="'.getMLText('type_to_filter').'">' : getMLText('name'))."</th>\n";
print "<th width='20%'>".getMLText("last_update")."</th>\n"; print "<th width='20%'>".getMLText("last_update")."</th>\n";
print "<th width='25%'>".getMLText("comment")."</th>"; print "<th width='25%'>".getMLText("comment")."</th>";
print "<th width='15%'>".getMLText("status")."</th>\n"; print "<th width='15%'>".getMLText("status")."</th>\n";