MILORD65
Member
I'm having a problem with the update_col plugin.
I configured it to update an "official" field with an eval expression that will look for a value in another "t_reattribution_folders" table:
$db = Jfactory::getDbo();
$query = $db->getQuery(true);
$query = "UPDATE t_registre_dossiers SET t_registre_dossiers.fonctionnaire = (SELECT t_reattribution_dossiers.fonctionnaire FROM t_reattribution_dossiers WHERE t_reattribution_dossiers.id = 1)";
$db->setQuery($query);
$db->execute();
it works very well but it only updates records that are not checked while I want it to update those I checked!
Does anyone have the same problem?
Which solution ?
I configured it to update an "official" field with an eval expression that will look for a value in another "t_reattribution_folders" table:
$db = Jfactory::getDbo();
$query = $db->getQuery(true);
$query = "UPDATE t_registre_dossiers SET t_registre_dossiers.fonctionnaire = (SELECT t_reattribution_dossiers.fonctionnaire FROM t_reattribution_dossiers WHERE t_reattribution_dossiers.id = 1)";
$db->setQuery($query);
$db->execute();
it works very well but it only updates records that are not checked while I want it to update those I checked!
Does anyone have the same problem?
Which solution ?