Indefero

Indefero Commit Details


Date:2012-03-04 16:57:26 (12 years 9 months ago)
Author:Simon Holywell
Branch:develop
Commit:f697d97b6ab6c9c0a38e793f8350360e85b08f4b
Parents: 9bd59128842a3a873c957044d3030a2f5c111338
Message:Issue 584: Ability to add a due date to a ticket - beginnings thereof

Changes:

File differences

src/IDF/Form/IssueCreate.php
112112
113113
114114
115
116
117
118
119
120
115121
116122
117123
......
368374
369375
370376
377
371378
372379
373380
'size' => 15,
),
));
$this->fields['due_dtime'] = new Pluf_Form_Field_Datetime(
array('required' => false,
'label' => __('Due Date'),
'initial' => '',
'widget_attrs' => array('size' => 15,),
));
$this->fields['relation_type0'] = new Pluf_Form_Field_Varchar(
array('required' => false,
$issue->status = new IDF_Tag($_t[0]); // first one is the default
$issue->owner = null;
}
$issue->due_dtime = $this->cleaned_data['due_dtime'];
$issue->summary = trim($this->cleaned_data['summary']);
$issue->create();
foreach ($tags as $tag) {
src/IDF/Form/IssueUpdate.php
103103
104104
105105
106
107
108
109
110
111
106112
107113
108114
......
385391
386392
387393
394
395
396
397
388398
389399
390400
......
431441
432442
433443
444
434445
435446
436447
'size' => 15,
),
));
$this->fields['due_dtime'] = new Pluf_Form_Field_Datetime(
array('required' => false,
'label' => __('Due Date'),
'initial' => $this->issue->due_dtime,
'widget_attrs' => array('size' => 15,),
));
$idx = 0;
// note: clean_relation_type0 and clean_relation_issue0 already
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']);
}
// Issue relations - additions
foreach ($this->cleaned_data['_added_issue_relations'] as $verb => $ids) {
$other_verb = $this->relation_types[$verb];
$this->issue->summary = trim($this->cleaned_data['summary']);
$this->issue->status = $status;
$this->issue->owner = $owner;
$this->issue->due_dtime = $due_dtime;
}
// Create the comment
$comment = new IDF_IssueComment();
src/IDF/Issue.php
9191
9292
9393
94
95
96
97
98
99
94100
95101
96102
'model' => 'IDF_Tag',
'verbose' => __('labels'),
),
'due_dtime' =>
array(
'type' => 'Pluf_DB_Field_Datetime',
'blank' => true,
'verbose' => __('due date'),
),
'status' =>
array(
'type' => 'Pluf_DB_Field_Foreignkey',
src/IDF/templates/idf/issues/create.html
6363
6464
6565
66
67
68
69
70
6671
6772
6873
</td>
</tr>
<tr>
<th>{$form.f.due_dtime.labelTag}:</th>
<td>{if $form.f.due_dtime.errors}{$form.f.due_dtime.fieldErrors}{/if}
{$form.f.due_dtime|unsafe}
</td>
<tr>
<th>{$form.f.relation_type0.labelTag}:</th>
<td>
{if $form.f.relation_type0.errors}{$form.f.relation_type0.fieldErrors}{/if}
src/IDF/templates/idf/issues/view.html
128128
129129
130130
131
132
133
134
135
131136
132137
133138
{$form.f.owner|unsafe}
</td>
</tr>
<th>{$form.f.due_dtime.labelTag}:</th>
<td>{if $form.f.due_dtime.errors}{$form.f.due_dtime.fieldErrors}{/if}
{$form.f.due_dtime|unsafe}
</td>
<tr>
<tr>
<th>{$form.f.relation_type0.labelTag}:</th>
<td>

Archive Download the corresponding diff file

Page rendered in 0.08830s using 14 queries.