Commit 750a058a3ba1b003aacfae4df2a258ade31de2e3

Authored by Kevin Fourie
1 parent e29190ee

KTS-1600

"Version History: Document compare : incorrect user in "Last update by" field"
Verified and applied patch.

Reviewed By: Conrad



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6188 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/widgets/fieldsetDisplay.inc.php
... ... @@ -200,7 +200,7 @@ class GenericFieldsetDisplay extends KTFieldsetDisplay {
200 200 }
201 201 $modified_user =& User::get($document->getModifiedUserId());
202 202 if (PEAR::isError($modified_user)) {
203   - $modified_user_name = "<span class='ktError'>" . _kt("Unable to find the document's creator") . "</span>";
  203 + $modified_user_name = "<span class='ktError'>" . _kt("Unable to find the document's modifier") . "</span>";
204 204 } else {
205 205 $modified_user_name = $modified_user->getName();
206 206 }
... ... @@ -263,7 +263,7 @@ class GenericFieldsetDisplay extends KTFieldsetDisplay {
263 263 $document_type = $aDocumentData["document_type"]->getName();
264 264 $comparison_document_type = $aComparisonData["document_type"]->getName();
265 265  
266   - $modified_user =& User::get($document->getModifiedUserId());
  266 + $modified_user =& User::get($document->getVersionCreatorId());
267 267 if (PEAR::isError($modified_user)) {
268 268 $modified_user = "<span class='ktError'>" . _kt("Unable to find the document's modifier") . "</span>";
269 269 } else {
... ... @@ -279,9 +279,9 @@ class GenericFieldsetDisplay extends KTFieldsetDisplay {
279 279  
280 280  
281 281  
282   - $comparison_modified_user =& User::get($comparison_document->getModifiedUserId());
  282 + $comparison_modified_user =& User::get($comparison_document->getVersionCreatorId());
283 283 if (PEAR::isError($comparison_modified_user)) {
284   - $comparison_modified_user = "<span class='ktError'>" . _kt("Unable to find the document's creator") . "</span>";
  284 + $comparison_modified_user = "<span class='ktError'>" . _kt("Unable to find the document's modifier") . "</span>";
285 285 } else {
286 286 $comparison_modified_user = $comparison_modified_user->getName();
287 287 }
... ...