Fix issue where user cannot update policy contents. #263

This commit is contained in:
Korina Cordero 2019-09-06 07:17:39 +00:00
parent 417bd3c0e1
commit f1f6db475c

View file

@ -205,7 +205,8 @@ class PrivacyPolicyController extends Controller
throw $this->createNotFoundException('The item does not exist');
// set and save values
$row->setName($req->request->get('name'));
$row->setName($req->request->get('name'))
->setContent($req->request->get('content'));
// validate
$errors = $validator->validate($row);