Thu 18 Sep 2003 06:39:54 AM UTC, comment #2:
hey!! i think i found where is the error, in setup scripts, in tables_update.inc.php when try to upgrade the addresses this code run:
$db1->query("INSERT INTO phpgw_contact_addr(contact_id,add1,
city, state, postal_code, country, tz, addr_type_id,
created_on, created_by, modified_on, modified_by) VALUES ("
. $GLOBALS['phpgw_setup']->oProc->f('org_id')
. ", '" .
$db1->db_addslashes($GLOBALS['phpgw_setup']->oProc->f('adr_one_street'))
." '" . ", '" .
$db1->db_addslashes($GLOBALS['phpgw_setup']->oProc->f('adr_one_locality'))
. "'" . ", '" . $db1->db_addslashes($GLOBALS['phpgw_setup']->oProc->f('adr_one_region'))
." '" . ", '".
$db1->db_addslashes($GLOBALS['phpgw_setup']->oProc->f('adr_one_postalcode'))
." '". ", '" . $db1->db_addslashes($GLOBALS['phpgw_setup']->oProc->f('adr_one_countryname'))
." '". ", " .
intval($GLOBALS['phpgw_setup']->oProc->f('tz'))
. ", " .
($GLOBALS['phpgw_setup']->oProc->f('addr_type_id'))? $GLOBALS['phpgw_setup']->oProc->f('addr_type_id') : $addr_type
. ", " . $GLOBALS['phpgw_setup']->oProc->f('created_on')
. ", " . $GLOBALS['phpgw_setup']->oProc->f('created_by')
. ", " . $GLOBALS['phpgw_setup']->oProc->f('modified_on')
. ", " . $GLOBALS['phpgw_setup']->oProc->f('modified_by')
. ");");
and for any reason the sql which this want to run is '3' i think this 3 is the addr_type_id, but i don't know why this concatenation only returns '3'.
i will review this later and try to fix, but probably bjohnson can help me in this :P
|