-
Notifications
You must be signed in to change notification settings - Fork 12
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
New feature : advanced options for interactions with the plugin fields #104
base: main
Are you sure you want to change the base?
New feature : advanced options for interactions with the plugin fields #104
Conversation
…erfield list display
…d-compatibility # Conflicts: # setup.php
… hook and display linked to plugin fields
We are very interested in this feature! I gave the code a try and it mostly works for us in testing. |
Hi @ArthurMinfotel |
…d-compatibility # Conflicts: # composer.lock
…tion for link with fields
Done, I also added some fixes for a few bugs that I had missed. |
One thing : I used at least one PHP 8 function in this feature (str_starts_with), so ideally the composer.json should be updated to reflect it if this is added. |
…s-advanced-compatibility-new-model # Conflicts: # hook.php # inc/model.class.php # inc/modelcontainer.class.php # inc/uninstall.class.php
# Conflicts: # inc/model.class.php
…d-compatibility # Conflicts: # inc/model.class.php
…lity' into plugin-fields-advanced-compatibility # Conflicts: # inc/model.class.php
…d-compatibility # Conflicts: # inc/model.class.php
Need to do some tests to make sure the change done for the new model are bug free. |
…iner & modelcontainerfield
…ield type), still a problem with a field of type "dropdown-$itemtype" multiple
Replace the option raz_plugin_fields by a new option : action_plugin_fields.
The available values for this option depend on the model's type :
Uninstall : do nothing (equivalent of 0 for raz_plugin_fields), blank (equivalent of 1 for raz_plugin_fields), advanced options.
Replace : do nothing (equivalent of 0 for raz_plugin_fields), copy (will copy all values in additional fields of olditem to newitem), advanced options.
Advanced options allow the users to define the action per blocs of additional fields.
The actions available per bloc depend on the model's type :
Uninstall : do nothing, blank, per field action (choose the action for each field of the bloc individually).
Replace : do nothing, copy, per field action.
Then, per field action allow to choose among those options for the fields :
Uninstall : do nothing, blank, set value (choose a new value, unavailable for field of glpi_item type).
Replace : do nothing, copy.