BUG 13528 Error en el uso de grillas con campos requeridos SOLVED

- In some PHP versions the global variables behaviour was changed
- Add the global declaration before load required variables template