Ticket #392

Implementation of ticket 392: http://trac.gestorpsi.com.br/ticket/392