BUG 10917 No se terminan de crear campos en la BD al hacer upgrade SOLVED

- Variable not defined.
- was add validation.
Merge pull request #1367 from marcoAntonioNina/BUG-10917

BUG 10917 No se terminan de crear campos en la BD al hacer upgrade SOLVED