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

WIP use default values to set actors of tickets #927

Merged
merged 2 commits into from
Apr 23, 2018

Conversation

btry
Copy link
Collaborator

@btry btry commented Mar 5, 2018

This fix solves issues with Behaiours plugin < 2.0.2 and creates tickets like GLPI does internally

fix #629

@btry btry added the bug label Mar 5, 2018
@btry btry added this to the 2.6.3 milestone Mar 5, 2018
@btry btry self-assigned this Mar 5, 2018
@btry btry requested a review from orthagh March 5, 2018 16:39
@btry
Copy link
Collaborator Author

btry commented Mar 5, 2018

This PR reveals an issue in GLPI : inconsistency between default values of a ticket and showForm()

@btry btry force-pushed the feature/629_normalize branch from c49c5ff to 764c3bc Compare March 21, 2018 14:14
@btry btry force-pushed the feature/629_normalize branch 3 times, most recently from 8cb0e90 to 1c28734 Compare April 3, 2018 09:07
@@ -1094,7 +1094,7 @@ public function save(PluginFormcreatorForm_Answer $formanswer) {
unset($predefined_fields['_groups_id_requester']);
}
if (isset($predefined_fields['_groups_id_observer'])) {
$this->addGroupActor('assigned', $predefined_fields['_groups_id_observer']);
$this->addGroupActor('observer', $predefined_fields['_groups_id_observer']);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy paste problem => put the observer groups in assigned groups

This fix solves issues with Behaiours plugin < 2.0.2 and creates tickets like GLPI does internally

fix pluginsGLPI#629
@btry btry force-pushed the feature/629_normalize branch from 5a5a46e to 55a2299 Compare April 16, 2018 12:43
Signed-off-by: btry <tbugier@teclib.com>
@btry btry force-pushed the feature/629_normalize branch from 55a2299 to f87d54a Compare April 16, 2018 12:43
@btry btry merged commit 4ee6173 into pluginsGLPI:develop Apr 23, 2018
@btry btry deleted the feature/629_normalize branch April 23, 2018 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version 2.5.0: group not added to requesters
1 participant