BUG 6698 SQL Conection

we are making the connection to the correct db and run the query to obtain the label
This commit is contained in:
Carlos Pacha
2011-04-26 16:32:24 -04:00
parent e6edcf8281
commit 6766b1e91e

View File

@@ -385,7 +385,8 @@ class Form extends XmlForm
$values[$k . '_label'] = $v->option[$newValues[$k]];
}else{
$query = G::replaceDataField($this->fields[$k]->sql,$newValues);
$con = Propel::getConnection('workflow');
//we do the query to the external connection and we've got the label
$con = Propel::getConnection($this->fields[$k]->sqlConnection);
$stmt = $con->prepareStatement($query);
$rs = $stmt->executeQuery(ResultSet::FETCHMODE_NUM);
while ($rs->next()){