From 43d2f4a33379fd0c226eb4519c3590d7c84232a6 Mon Sep 17 00:00:00 2001 From: Lucas Schmoeller da Silva Date: Wed, 18 Mar 2015 15:36:54 -0300 Subject: [PATCH] Alterado cadastro de cliente Biblioteca --- ieducar/intranet/educar_cliente_cad.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ieducar/intranet/educar_cliente_cad.php b/ieducar/intranet/educar_cliente_cad.php index f263e54..05395bf 100644 --- a/ieducar/intranet/educar_cliente_cad.php +++ b/ieducar/intranet/educar_cliente_cad.php @@ -232,7 +232,7 @@ class indice extends clsCadastro $this->ativo = 1; - $sql = "SELECT COUNT(0) FROM pmieducar.cliente_tipo_cliente WHERE ref_cod_cliente_tipo = {$this->cod_cliente} + $sql = "SELECT COUNT(0) FROM pmieducar.cliente_tipo_cliente WHERE ref_cod_cliente = {$this->cod_cliente} AND ref_cod_biblioteca = {$this->ref_cod_biblioteca} AND ativo = 1"; $db = new clsBanco(); @@ -254,7 +254,6 @@ class indice extends clsCadastro } } else { - $this->Editar(); $this->mensagem = "O cliente já está cadastrado!
"; } } -- libgit2 0.21.2