From e27901aec6d16487ad900efaa9eb9a075522b818 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 7 Mar 2014 16:58:50 +0200 Subject: [PATCH] fix massUpdate --- application/Espo/Services/Record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Espo/Services/Record.php b/application/Espo/Services/Record.php index 7bb83f7111..2eaf4672bb 100644 --- a/application/Espo/Services/Record.php +++ b/application/Espo/Services/Record.php @@ -326,7 +326,7 @@ class Record extends \Espo\Core\Services\Base foreach ($ids as $id) { $entity = $this->getEntity($id); if ($this->getAcl()->check($entity, 'edit')) { - $entity->set($attributes); + $entity->set(get_object_vars($attributes)); if ($repository->save($entity)) { $idsUpdated[] = $id; }