141,7 → 141,7 |
foreach ($champs_etendus['ce'] as $num_champ => $champ_etendu) { |
$modif_ce = "UPDATE {$this->table_champs_etendus} ce join {$this->table_champs_etendus_trad} cet"; |
$modif_ce .= " on field_id = `extended_field_id` and ce.`project` = cet.`project` and ". |
"`language_iso_code` = ".Cel::db()->proteger($langue)." "; |
"`language_iso_code` = ".Cel::db()->proteger($langue)." SET "; |
// pour chaque valeur de la table extended_field |
foreach ($champs_etendus['ce'][0] as $num_colonne => $colonne) { |
$modif_ce .= "ce.".$num_colonne." = ".Cel::db()->proteger($champ_etendu[$num_colonne]).", "; |
152,7 → 152,7 |
} |
$modif_ce = rtrim($modif_ce, ", "); |
$modif_ce .= " WHERE ce.{$this->champ_id} = ".Cel::db()->proteger($champ_etendu['field_id']); |
$modif_ce .= " AND project = ".Cel::db()->proteger($champ_etendu['project']).";"; |
$modif_ce .= " AND ce.project = ".Cel::db()->proteger($champ_etendu['project']).";"; |
$modif = Cel::db()->executer($modif_ce); |
} |
return ($modif !== false); |