public function updateSingleValue($contenttype, $id, $field, $value)
{
$id = intval($id);
if (!$this->isValidColumn($field, $contenttype)) {
$error = Trans::__('contenttypes.generic.invalid-field', ['%field%' => $field, '%contenttype%' => $contenttype]);
$this->app['logger.flash']->danger($error);
return false;
}
$content = $this->getContent("{$contenttype}/{$id}");
$content->setValue($field, $value);
$comment = Trans::__('The field %field% has been changed to "%newValue%"', ['%field%' => $field, '%newValue%' => $value]);
$result = $this->saveContent($content, $comment);
return $result;
}