You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2021-09-07 12:09:21

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Ticket - default document heading

Hello.

The user can add the document while processing the ticket. But I don't want to give him permission to view all the headlines. Can I hide them and set one as default, eg "ticket documents"? If yes - how?


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#2 2021-09-16 13:41:20

WebGreg
Member
Registered: 2020-02-27
Posts: 739

Re: Ticket - default document heading

OK I found it. Setup > General > Assistance tab > Default heading when adding a document to a ticket

But user still can change it. I need to hide this option.


--
GLPI 10.0.7
GLPI-Inventory 1.2.1
Ubuntu Server 20.04 LTS

Offline

#3 2024-03-05 20:53:07

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Re: Ticket - default document heading

WebGreg wrote:

OK I found it. Setup > General > Assistance tab > Default heading when adding a document to a ticket

But user still can change it. I need to hide this option.

Please tell me, have you or someone found a solution to hide this from users?


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

#4 2024-03-05 21:51:52

sIBajHYG
Member
From: Mission [KS]
Registered: 2023-08-18
Posts: 75

Re: Ticket - default document heading

I quickly found this crutch.... I don’t know how safe it is...
I clicked everything about this topic in GLPI - there seem to be no new bugs anywhere.

/glpi_data/www/html/glpi/templates/components/itilobject/timeline/form_document_item.html.twig

{{ fields.dropdownField(
                    '1DocumentCategory',
                    'documentcategories_id',
                    null,
                    __("Heading"),
                    {
                        'label_class': 'col-xxl-3',
                        'field_class': 'col-xxl-11',
                        'full_width': true,
                        'is_horizontal': false
                    }
                ) }}

"messed up" the variable name by adding "1". now it is displayed as we need...
p0U5qW.jpg

Please tell me if this change has any bad consequences.

Last edited by sIBajHYG (2024-03-05 22:16:47)


Linux ubuntu-22.04.2-live-server-amd64, PHP 8.1.2, Apache 2.4.52, MariaDB 10.6.12, GLPI 10.0.15.
GLPI Inventory 1.3.5, PHP SAML 1.3.0,  Oauth IMAP 1.4.3, Additional Fields, 1.21.8,Ticket Cleaner.

Offline

Board footer

Powered by FluxBB