Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/779/head
Maxence Lange 2019-10-02 13:57:29 -01:00
rodzic a000613e55
commit 85d07abebe
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -156,9 +156,7 @@ class StreamRequest extends StreamRequestBuilder {
$new = $this->updateAttachmentInList($document, $this->getArray('attachments', $data, []));
$qb = $this->getStreamUpdateSql();
$qb->set(
'attachments', $qb->createNamedParameter(json_encode($new, JSON_UNESCAPED_SLASHES))
);
$qb->set('attachments', $qb->createNamedParameter(json_encode($new, JSON_UNESCAPED_SLASHES)));
$qb->limitToIdPrim($qb->prim($document->getParentId()));
$qb->execute();