Donate Share

FacturaLUX

Tracker: Bugs

5 Error módulo flfactppal en contactos con el carácter ' - ID: 2727844
Last Update: Attachment added ( oscar_amidasoft )

Cuando un contacto tiene el carçacter ' (apóstrofe) en el nombre, al
reorganizar contactos (acción que sucede al iniciar el módulo flfactppal)
se produce un error de sintaxis en algunas queries que usan el nombre del
contacto en la condición where.
Para arreglarlo hay que substituir expresiones del tipo de:

qryContactos.setWhere("crm_contactos.nombre = '" + nombreCon + "'");

por:
qryContactos.setWhere("crm_contactos.nombre = '" + (nombreCon!=null ?
nombreCon.replace("'","''"):nombreCon) ");

en el archivo flfactppal.qs.

Adjunto el archivo corregido.


Oscar Pérez ( oscar_amidasoft ) - 2009-04-03 07:06

5

Open

None

Nobody/Anonymous

FacturaLUX Lite

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
flfactppal.qs Archivo flfactppal.qs con el problema de los apóstrofes corregido. Download

Change ( 1 )

Field Old Value Date By
File Added 321023: flfactppal.qs 2009-04-03 07:06 oscar_amidasoft