Skip to content

Commit 4309fcc

Browse files
authored
Merge pull request #1088 from itflow-org/doc-revisions-updatedby
Docs - Show user updated by in revisions
2 parents 893eb16 + ab18005 commit 4309fcc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client_document_details.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<tbody>
8585
<?php
8686
$sql_document_revisions = mysqli_query($mysqli, "SELECT * FROM documents
87-
LEFT JOIN users ON document_created_by = user_id
87+
LEFT JOIN users ON document_updated_by = user_id
8888
WHERE document_parent = $document_parent
8989
ORDER BY document_created_at ASC"
9090
);
@@ -101,6 +101,9 @@
101101
$revision_document_description_display = "-";
102102
}
103103
$revision_document_author = nullable_htmlentities($row['user_name']);
104+
if (empty($revision_document_author)) {
105+
$revision_document_author = $document_created_by_name;
106+
}
104107
$revision_document_created_date = date('Y-m-d', strtotime($row['document_created_at']));
105108

106109
?>

0 commit comments

Comments
 (0)