プロジェクト

全般

プロフィール

Vote #77648

完了

Don't show "status" field when creating a new version

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

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Roadmap_22
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
22
version_id:
119
issue_org_id:
23377
author_id:
48494
assigned_to_id:
1
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
110
ステータス-->[Closed]

説明

When creating a new version from within the issue form field with the modal dialogue, the "status" option should be hidden.
It makes no sense to set this newly created version to "closed" or "locked" because then, it isn't selectable from the isuee form field.


Defect duplicate of Feature #21416 as Feature request don't get ANY attention by the Redmine team.
And in fact, this one here could also be called a bug instead of a feature...


journals

I agree, this option makes no sense here.

A quick fix for your instance, if this is causing user issues would be to hide it via CSS

Add to your theme application.css:

<pre><code class="css">
/* Hide version status selection in version create dialog */
.ui-dialog .new_version p:nth-child(3) {
display: none;
}
</code></pre>
--------------------------------------------------------------------------------
Hi Jake,

thanks for the smooth workaround. Werks very well!
--------------------------------------------------------------------------------
I made a patch that fixes/implements this without CSS.

The patch passes all the tests and adds two new assertions:
# new version form doesn't contains the status field
# edit version form contains the status field.
--------------------------------------------------------------------------------
Tobias Fischer wrote:
> When creating a new version from within the issue form field with the modal dialogue, the "status" option should be hidden.
> It makes no sense to set this newly created version to "closed" or "locked" because then, it isn't selectable from the isuee form field.

In my opinion it makes no sense in all pages from where you can add new versions, not only in the modal dialogue. I think there are very few cases when you want to add a locked/closed version.
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> In my opinion it makes no sense in all pages from where you can add new versions, not only in the modal dialogue. I think there are very few cases when you want to add a locked/closed version.

I agree with you.

Thanks for the patch. It looks good to me.
Setting target version to 3.4.0.

--------------------------------------------------------------------------------
_Marius BALTEANU wrote:_
> In my opinion it makes no sense in all pages from where you can add new versions, not only in the modal dialogue. I think there are very few cases when you want to add a locked/closed version.

Yeah, totally agree with you! :)

Thanks for the patch! Looking forward to see this implemented!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,21416,Hide "status" field from new version form when it is called from modal dialogue from the issue form

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

  • カテゴリRoadmap_22 にセット
  • 対象バージョン3.4.0_119 にセット

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

いいね!0
いいね!0