-
Notifications
You must be signed in to change notification settings - Fork 14
FIX / PDF export for assignable asset groups #63
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
63a67af
c5a4367
c6ee945
9d121a6
8561d73
64516c8
be909f2
1e1b4f5
8231424
be60c34
b705cc7
f06f353
460a46c
d4e7ce8
e71b3a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -86,17 +86,12 @@ public static function pdfMain(PluginPdfSimplePDF $pdf, Computer $computer) | |||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| $pdf->displayLine( | ||||||||||||||||||||||||||||
| '<b><i>' . sprintf( | ||||||||||||||||||||||||||||
| __('%1$s: %2$s'), | ||||||||||||||||||||||||||||
| __('Group') . '</i></b>', | ||||||||||||||||||||||||||||
| Dropdown::getDropdownName( | ||||||||||||||||||||||||||||
| 'glpi_groups', | ||||||||||||||||||||||||||||
| $computer->fields['groups_id'], | ||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||
| ), | ||||||||||||||||||||||||||||
| '<b><i>' . sprintf(__('%1$s: %2$s'), __('UUID') . '</i></b>', $computer->fields['uuid']), | ||||||||||||||||||||||||||||
| self::get_group_column($computer), | ||||||||||||||||||||||||||||
| self::get_group_column($computer, 'groups_id_tech', __('Group in charge of the hardware')), | ||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This introduces a duplicate "Group in charge of the hardware" field on the Computer PDF.
Suggested change
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| $pdf->displayLine(self::get_label_value(__('UUID'), $computer->fields['uuid'])); | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| $pdf->displayLine( | ||||||||||||||||||||||||||||
| '<b><i>' . sprintf( | ||||||||||||||||||||||||||||
| __('%1$s: %2$s'), | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.