X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=blobdiff_plain;f=gforge%2Fcommon%2Ftracker%2FArtifact.class.php;h=640359f31f1d478648fe8b29c150400747c65409;hp=46253960270723b617cdb1f24da8a0e8f4bd39a4;hb=d96e70d40f1da6abe2c7e8aab5633921bf5a546d;hpb=3e77815fa8cece197f44d2daf802dd6cde841fa4 diff --git a/gforge/common/tracker/Artifact.class.php b/gforge/common/tracker/Artifact.class.php index 4625396027..640359f31f 100644 --- a/gforge/common/tracker/Artifact.class.php +++ b/gforge/common/tracker/Artifact.class.php @@ -988,15 +988,10 @@ class Artifact extends Error { $changes['status'] = 1; $update = true; - // - // Enter the timestamp if we are changing to closed - // if ($status_id != 1) { - $sqlu .= " close_date='".time()."', "; + $close_date = time () ; } else { - // Reset the close_date if bug is re-opened - // (otherwise stat reports will be wrong). - $sqlu .= " close_date='0', "; + $close_date = 0 ; } $this->addHistory('close_date', $this->getCloseDate()); }