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 2025-03-13 18:14:05

jorgealex72@gmail.com
Member
Registered: 2025-03-13
Posts: 14

validate field CONTENT during creation of ticket

Hi ..! I intercept ticket request during creation of a ticket and delete CONTENT value this allow me to save the ticket with no CONTENT text.
Next i need to validate this field has no black data but the validation must be in server side (actually make in js)

I try to add this code to file /front/ticket but during execution throw me and exception with messsage "cant not use object of type Ticket as array"

if (Html::clean($track["fields"]["content"]) == "") {
    //    Html::displayRightError('Ingresar un valor para el campo Descripción') ;
        exit ;
    }

I use xampp and GLPI v. 10.0.6

How can i make this validation on server side

thanks for your support

Offline

Board footer

Powered by FluxBB