Hiding fields depending on category does not work
还没有人认领这个 Issue。
评估
调研方向
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 小时
- 30 天内合并 PR
- 12
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pluginsGLPI/fields 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 66/100
pluginsGLPI/fields#1270 ·
-
[GLPI 12.0.0] Fields are not displayed in insertion mode in the main menu on Knowledge Base article 未关闭Stale
难度 3/5 1-2 天 新手友好度 58/100
pluginsGLPI/fields#1256 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
pluginsGLPI/fields#1245 · 4 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
pluginsGLPI/fields#1015 ·
查看 pluginsGLPI/fields 的全部 Issue
相似的 Issue
-
Bug
难度 2/5 1-3 小时 新手友好度 70/100
Automattic/safe-publish#594 ·
-
HttpClient
难度 2/5 1-3 小时 新手友好度 75/100
symfony/symfony-docs#23092 ·
-
sync-en
难度 1/5 1 小时以内 新手友好度 90/100
-
sync-en
难度 1/5 1 小时以内 新手友好度 95/100
-
Перевод устарел
难度 2/5 1-3 小时 新手友好度 75/100