Hiding fields depending on category does not work
まだ誰も着手していません。
評価
調査の方向性
Reproduce ticket creation in the simplified interface using a block with fields and a hiding condition based on ticket category, then inspect the plugin code handling conditional block visibility and form layout updates. Compare the category condition with the working title condition; done means the block hides when the specified category is selected without layout or CSS breakage.
索引モデルが issue の本文から書いたものです。
説明
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
GLPI Version
10.0.15
Plugin version
1.21.15
Bug description
When I setup a block to be hidden depending on ticket category, block is not hidden in simplified interface. Haven't tried in standard interface since it does not meet our requirements.
Block configuration:
Block fields:
Block hiding condition:
When a user begins to create a ticket, block is shown (which is expected to happen)
But when the user sets the category by which the block has to be hidden, some erratic movement happens and the field is still shown with broken CSS, a.k.a. moved rightwards and wider.
I've tried setting the condition to the ticket's title and this works correctly, block is successfully hidden and works like a charm.
Relevant log output
No response
Page URL
No response
Steps To reproduce
- Create a block and set it's type to "Insertion in the form (before save button)".
- Configure some fields in the block.
- Set a hiding conditional rule that depends on ticket's category.
- Test a ticket creation by setting the category specified on step
3and block is still present.
Your GLPI setup information
No response
Anything else?
No response
- 主要言語
- PHP
- スター
- 115
- フォーク
- 82
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 12
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pluginsGLPI/fields のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
pluginsGLPI/fields#1270 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
pluginsGLPI/fields#1245 · コメント 4 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
pluginsGLPI/fields#1015 ·
pluginsGLPI/fields の issue をすべて見る
似ている issue
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
UX
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MagnaCapax/PMSS#949 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Automattic/static-site-importer#1829 ·