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: 729

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: 729

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: 59

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.6.
FusionInventory 10.0.6+1.1, Human Resources 3.0.4, PHP SAML 1.2.1, Additional Fields 1.21.8, Oauth IMAP 1.4.2

Offline

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

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

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.6.
FusionInventory 10.0.6+1.1, Human Resources 3.0.4, PHP SAML 1.2.1, Additional Fields 1.21.8, Oauth IMAP 1.4.2

Offline

Board footer

Powered by FluxBB