[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3247)
Next Framework • Ver Tópico - Erro ao salvar form com telefone
Página 1 de 1

Erro ao salvar form com telefone

MensagemEnviado: Dom Jun 05, 2016 10:57 pm
por celsojr

Re: Erro ao salvar form com telefone

MensagemEnviado: Ter Jun 14, 2016 7:48 pm
por rogelgarcia
Ola Celso,

Ao salvar, a classe Telefone ira remover os caracteres especiais e salvar apenas os numeros. Esse é o procedimento padrao.

Voce mesmo criou a coluna, ou foi criacao automatica do hibernate?

Re: Erro ao salvar form com telefone

MensagemEnviado: Qui Jun 16, 2016 1:29 pm
por celsojr
Blz Rogel!

Estou usando a classe Phone. O campo foi criado automaticamente pelo hibernate.

Re: Erro ao salvar form com telefone

MensagemEnviado: Dom Jun 19, 2016 2:28 pm
por celsojr
Encontrei o erro. Como migrei de uma versão anterior do Next o campo telefone no banco estava com tipo VARCHAR. Ao excluir o campo e deixar o hibernate criá-lo novamente, mudou para TINYBLOB.

Obrigado pela observação Rogel.

Re: Erro ao salvar form com telefone

MensagemEnviado: Dom Jun 19, 2016 5:00 pm
por celsojr
Agora na hora de editar o Form o campo de telefone não está preenchendo com a mascara correta. Está com a seguinte mascará 3199-9052729, sendo que o correto seria (31) 99905-2729. Outra coisa não está permitindo salvar o telefone sem o nono digito.

Re: Erro ao salvar form com telefone

MensagemEnviado: Dom Jun 19, 2016 10:59 pm
por rogelgarcia
Ola Celso,

Sobre essas questoes da classe telefone, sao possiveis bugs e tem que ser analisados.

Minha recomendacao, para resolver seu problema mais rapido, eh extender a classe Phone e adicionar os ajustes necessarios.

Re: Erro ao salvar form com telefone

MensagemEnviado: Ter Jun 21, 2016 6:29 pm
por celsojr

Re: Erro ao salvar form com telefone

MensagemEnviado: Qua Jun 22, 2016 12:18 am
por rogelgarcia
Obrigado por compartilhar as atualizações Celso. Irei incorporá-las ao código.