Skip to content

Commit

Permalink
Merge pull request #1088 from itflow-org/doc-revisions-updatedby
Browse files Browse the repository at this point in the history
Docs - Show user updated by in revisions
  • Loading branch information
johnnyq authored Oct 7, 2024
2 parents 893eb16 + ab18005 commit 4309fcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client_document_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<tbody>
<?php
$sql_document_revisions = mysqli_query($mysqli, "SELECT * FROM documents
LEFT JOIN users ON document_created_by = user_id
LEFT JOIN users ON document_updated_by = user_id
WHERE document_parent = $document_parent
ORDER BY document_created_at ASC"
);
Expand All @@ -101,6 +101,9 @@
$revision_document_description_display = "-";
}
$revision_document_author = nullable_htmlentities($row['user_name']);
if (empty($revision_document_author)) {
$revision_document_author = $document_created_by_name;
}
$revision_document_created_date = date('Y-m-d', strtotime($row['document_created_at']));

?>
Expand Down

0 comments on commit 4309fcc

Please sign in to comment.