fix: ajax
Bug fix, add flush for reference data
This commit is contained in:
parent
9aa49c9c2c
commit
6369f5c7b9
@ -248,6 +248,7 @@ class AjaxController extends AbstractController
|
|||||||
if ($ref) {
|
if ($ref) {
|
||||||
$ref->setContent($data->text);
|
$ref->setContent($data->text);
|
||||||
$emi->persist($ref);
|
$emi->persist($ref);
|
||||||
|
$emi->flush();
|
||||||
$res = $this->json(['msg' => 'Reference updated.']);
|
$res = $this->json(['msg' => 'Reference updated.']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user