diff --git a/src/IDF/Form/IssueUpdate.php b/src/IDF/Form/IssueUpdate.php index 4063bfe..e18fa1f 100644 --- a/src/IDF/Form/IssueUpdate.php +++ b/src/IDF/Form/IssueUpdate.php @@ -272,6 +272,9 @@ class IDF_Form_IssueUpdate extends IDF_Form_IssueCreate or ((!is_null($owner) and !is_null($this->issue->get_owner())) and $owner->id != $this->issue->get_owner()->id)) { return $this->cleaned_data; } + if (trim($this->issue->due_dtime) != trim($this->cleaned_data['due_dtime'])) { + return $this->cleaned_data; + } $tags = array(); for ($i=1;$i<7;$i++) { if (strlen($this->cleaned_data['label'.$i]) > 0) { @@ -391,7 +394,6 @@ class IDF_Form_IssueUpdate extends IDF_Form_IssueCreate or ((!is_null($owner) and !is_null($this->issue->get_owner())) and $owner->id != $this->issue->get_owner()->id)) { $changes['ow'] = (is_null($owner)) ? '---' : $owner->login; } - $due_dtime = $this->cleaned_data['due_dtime']; if (trim($this->issue->due_dtime) != trim($this->cleaned_data['due_dtime'])) { $changes['du'] = trim($this->cleaned_data['due_dtime']); } @@ -441,7 +443,7 @@ class IDF_Form_IssueUpdate extends IDF_Form_IssueCreate $this->issue->summary = trim($this->cleaned_data['summary']); $this->issue->status = $status; $this->issue->owner = $owner; - $this->issue->due_dtime = $due_dtime; + $this->issue->due_dtime = $this->cleaned_data['due_dtime']; } // Create the comment $comment = new IDF_IssueComment(); diff --git a/src/IDF/IssueComment.php b/src/IDF/IssueComment.php index bcd648c..a418438 100644 --- a/src/IDF/IssueComment.php +++ b/src/IDF/IssueComment.php @@ -153,6 +153,8 @@ class IDF_IssueComment extends Pluf_Model $out .= __('Status:'); break; case 'ow': $out .= __('Owner:'); break; + case 'du': + $out .= __('Due Date:'); break; case 'lb': $out .= __('Labels:'); break; case 'rel': diff --git a/src/IDF/templates/idf/issues/view.html b/src/IDF/templates/idf/issues/view.html index 16a1137..f3a3c81 100644 --- a/src/IDF/templates/idf/issues/view.html +++ b/src/IDF/templates/idf/issues/view.html @@ -40,7 +40,7 @@ {if $i> 0 and $c.changedIssue()}
{foreach $c.changes as $w => $v} -{if $w == 'su'}{trans 'Summary:'}{/if}{if $w == 'st'}{trans 'Status:'}{/if}{if $w == 'ow'}{trans 'Owner:'}{/if}{if $w == 'lb'}{trans 'Labels:'}{/if}{if $w == 'rel'}{trans 'Relations:'}{/if} +{if $w == 'su'}{trans 'Summary:'}{/if}{if $w == 'st'}{trans 'Status:'}{/if}{if $w == 'ow'}{trans 'Owner:'}{/if}{if $w == 'du'}{trans 'Due Date:'}{/if}{if $w == 'lb'}{trans 'Labels:'}{/if}{if $w == 'rel'}{trans 'Relations:'}{/if} {if $w == 'lb' or $w == 'rel'} {foreach $v as $t => $ls} {foreach $ls as $l}