Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(block): add options to hide block #497

Merged

Conversation

stonebuzz
Copy link
Contributor

Allow to add condition to hide block switch related itemtype data

Ex : Hide Block if Computer is of type Desktop

Available condition : >, <, =, , regex

Available fields (from itemtype) :

  • dropdown (only foreign key from main object)
  • email
  • itemlink
  • string
  • text
  • number
  • decimal
  • integer
  • bool

@cconard96
Copy link
Contributor

@cedric-anne This feature covers the other client need when used with #11409.

The only thing I noticed was that I had to enter the name of the template instead of getting a dropdown to select the value from.

@cedric-anne
Copy link
Contributor

The only thing I noticed was that I had to enter the name of the template instead of getting a dropdown to select the value from.

This is OK now, condition displays a dropdown when field corresponds to a foreign key or a dropdown.

@cedric-anne cedric-anne force-pushed the block_display_depends_on_the_object branch from eb78d37 to 06b669e Compare April 28, 2022 13:10
@cedric-anne cedric-anne merged commit 8e78cc6 into pluginsGLPI:develop Apr 29, 2022
@cedric-anne cedric-anne added this to the 1.15.0 milestone Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants