プロジェクト

全般

プロフィール

Vote #70366

未完了

Defaults aren't honored in release 1.2.1 (regression)

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
高め
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
-
開始日:
2011/07/19
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
0
issue_org_id:
8849
author_id:
10527
assigned_to_id:
0
comments:
8
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I have a custom field defined as integer that accepts values between 1 and 100 and has 100 as default.
Today I have installed redmine 1.2.1 and for all issues that was submitted before creation of this custum field, I haven't value =100 (as in previous version of redmine ) but I have the field empty.

This is a regression.


journals

Are you sure that the default value was set for already existing issues in previous versions ?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Are you sure that the default value was set for already existing issues in previous versions ?

Surely: do you want a screenshot?

--------------------------------------------------------------------------------
Can not reproduce. The default value for an integer custom field is present on the new issue form.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> Can not reproduce. The default value for an integer custom field is present on the new issue form.

The issue isn't related to new issue form; for example, if I have an issue that was submitted before that I have created the custom field, with previous release querying issues via *REST API* I see an xml like this (note <value>100</value>):

<pre>
<issue>
<id>46</id>
...
<author name="pasquale" id="3" />
...
<parent id="45" />
...
<custom_fields type="array">
...
<custom_field name="Py-order" id="10">
<value>100</value>
</custom_field>
</custom_fields>

<created_on>2011-02-11T20:43:52+01:00</created_on>
<updated_on>2011-02-11T20:43:52+01:00</updated_on>
</issue>
</pre>

with last release I have that the custom field is empty (note <value></value> for the same issue)

<pre>
<custom_fields type="array">
...
<custom_field name="Py-order" id="10">
<value></value>
</custom_field>
</custom_fields>
</pre>

Also if I see the isse via browser, now I see the custom field empty, while before I see the custom field with default value;

I hope now is clear.

Ciao.
--------------------------------------------------------------------------------
dedalus - wrote:
> Etienne Massip wrote:
> > Are you sure that the default value was set for already existing issues in previous versions ?
>
> Surely: do you want a screenshot?

Yes ?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Yes ?

Ok?

attachment:old-behavior.png
attachment:new-behavior.png

--------------------------------------------------------------------------------
We recently upgraded from .96 to 1.2.1 and are experiencing the same problem. Custom fields are no longer using the defined default values when issues are moved to projects without the same custom fields, as they were in the previous rendition.
--------------------------------------------------------------------------------
nick cuneo wrote:
> We recently upgraded from .96 to 1.2.1 and are experiencing the same problem. Custom fields are no longer using the defined default values when issues are moved to projects without the same custom fields, as they were in the previous rendition.

This doesn't seem to be related to this issue. I think it is rather by design since in the new project the custom field is not available, thus it hasn't a default value.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリCustom fields_14 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0