bea
Active Member
Hi,
I am using the update_col plugin to update a value on the list. The additional feature of updating user and date works well, but the time is ignoring the settings on the date element (local time).
Also I want to update an element with matched the same condition with post eval script, but this doesn't work. I don't know, if this is made for this....
Cheers,
Bianka
I am using the update_col plugin to update a value on the list. The additional feature of updating user and date works well, but the time is ignoring the settings on the date element (local time).
Also I want to update an element with matched the same condition with post eval script, but this doesn't work. I don't know, if this is made for this....
PHP:
$db= JFactory::getDbo();
$query=$db->getQuery(true);
$model = $this->getModel();
$fields=array(
$db->quoteName('checked_sum') . ' = 1'
);
foreach ($ids as $id) {
$row = $model->getRow($id, true);
$conditions=array(
$db->quoteName('machine') . ' = ' . $row->fab_cp1_line_tour___machine_raw,
$db->quoteName('date') . ' = ' . $row->fab_cp1_line_tour___date_raw,
$db->quoteName('shift') . ' = ' . $row->fab_cp1_line_tour___shift_raw
);
$query->clear()->update($db->quoteName('fab_cp1_line_tour'))->set($fields)->where($conditions);
$db->setQuery($query);
$db->execute();
}
Bianka
Last edited: