Changeset 710 for trunk/phpbms/modules/bms/include/clients.php
- Timestamp:
- 01/04/10 13:22:31 (2 years ago)
- Files:
-
- 1 modified
-
trunk/phpbms/modules/bms/include/clients.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/modules/bms/include/clients.php
r706 r710 1249 1249 if($rowFieldNum == $fieldNum){ 1250 1250 $verify = $this->table->verifyVariables($trimmedRowData); 1251 if(!count($verify)) 1252 $theid = $this->table->insertRecord($trimmedRowData, NULL, true); 1251 if(!count($verify)){ 1252 $createdby = NULL; 1253 $overrideID = true; 1254 $replace = false; 1255 if(!isset($trimmedRowData["uuid"])){ 1256 $useUuid = true; 1257 $thereturn = $this->table->insertRecord($trimmedRowData, $createdby, $overrideID, $replace, $useUuid); 1258 $theid = $thereturn["id"]; 1259 }else{ 1260 $useUuid = false; 1261 $thereturn = $this->table->insertRecord($trimmedRowData, $createdby, $overrideID, $replace, $useUuid); 1262 $theid = $thereturn; 1263 }//end if 1264 }//end if 1265 1253 1266 }else 1254 1267 $this->error .= '<li> incorrect amount of fields for line number '.$rowNum.'.</li>'; … … 1398 1411 `addresses`.`phone` 1399 1412 FROM 1400 ((clients INNER JOIN addresstorecord ON clients. id = addresstorecord.recordid AND addresstorecord.tabledefid=2 AND addresstorecord.primary=1) INNER JOIN addresses ON addresstorecord.addressid = addresses.id)1413 ((clients INNER JOIN addresstorecord ON clients.uuid = addresstorecord.recordid AND addresstorecord.tabledefid='tbld:6d290174-8b73-e199-fe6c-bcf3d4b61083' AND addresstorecord.primary='1') INNER JOIN addresses ON addresstorecord.addressid = addresses.uuid) 1401 1414 WHERE 1402 1415 `clients`.`id` IN (".$inStatement.") … … 1418 1431 1419 1432 function displayTransaction($recordsArray, $fieldsArray){ 1420 1433 1421 1434 if(count($recordsArray) && count($fieldsArray)){ 1422 1435