Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Mandatory fields are validated even when the container is hidden by conditions

オープン
#1,270 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php
領域
backend

調査の方向性

Start by reproducing the issue in GLPI 11.0.8 with Fields plugin 1.24.4: attach a container to Tickets, add a required field, and hide the container through its conditions. Trace the ticket save validation for hidden containers; done means tickets save when only required fields in a hidden container are empty, while visible required fields remain validated.

索引モデルが 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

11.0.8

Plugin version

1.24.4

Bug description

Hi,

I think I may have found an issue with mandatory fields and container visibility conditions.

Environment:

  • GLPI: 11.0.8
  • Fields plugin: 1.24.4

Configuration:

  • A Fields container is attached to Tickets.
  • The container is displayed only when:
    • Ticket type = Request
    • Category = Visitor Access
  • Several fields inside the container are marked as "Required".

Observed behavior:

  1. Create a new ticket.
  2. Select a ticket type or category that does not match the display conditions.
  3. The container is correctly hidden.
  4. Save the ticket.
  5. The ticket cannot be saved because the required fields inside the hidden container are considered empty.

Expected behavior:
When a container is hidden by its conditions, required fields inside that container should not be validated.
Alternatively, mandatory validation should only apply when the container is visible.

Additional information:

  • If I remove the "Required" flag from the fields, the ticket is saved correctly.
  • The issue is reproducible with a single required field in the container.

Could you please confirm whether this is expected behavior, a limitation, or a bug?

Thank you.

Relevant log output

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

主要言語
PHP
スター
115
フォーク
82
平均マージ
3日 5時間
マージ済み PR(30日)
12

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pluginsGLPI/fields のほかの issue

pluginsGLPI/fields の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。