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

To fix #801 #806

Merged
merged 2 commits into from
Jul 18, 2016
Merged

To fix #801 #806

merged 2 commits into from
Jul 18, 2016

Conversation

tomolimo
Copy link
Contributor

Added a test to be sure that we are going to view an existing class.
When not viewing a class, then will pass an array to the show_item hooks.

Added a test to be sure that we are going to view an existing class.
When not viewing a class, then will pass an array to the show_item hooks.
$item_i = $obj['item'];
} else {
$item_i = $obj->fields;
}

Copy link
Contributor

@orthagh orthagh Jul 12, 2016

Choose a reason for hiding this comment

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

This part (6295-6303) seems very complex, initially it was (before 94c8fad) :

$item_i = $item['item'];

Why redefining this var as it's not used by the new hooks ?

Added '&' to permit modification of passed parameter to hooks
@orthagh orthagh merged commit c39f6a3 into glpi-project:master Jul 18, 2016
orthagh added a commit that referenced this pull request Jul 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants