From 0e092d3495b20f7d923be06ad8d8d33f6153d6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 28 Feb 2018 12:21:14 +0100 Subject: [PATCH] Only return updated properties not resolvable ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #406 Signed-off-by: Julius Härtl --- js/controller/CardController.js | 1 - lib/Db/RelationalEntity.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/js/controller/CardController.js b/js/controller/CardController.js index 786b3260a..0a7e9a5d7 100644 --- a/js/controller/CardController.js +++ b/js/controller/CardController.js @@ -79,7 +79,6 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo header.find('.save-indicator.unsaved').hide(); header.find('.save-indicator.saved').fadeIn(250).fadeOut(1000); StackService.updateCard($scope.status.edit); - BoardService.$scope.$digest(); }); } }, 500, 0, false); diff --git a/lib/Db/RelationalEntity.php b/lib/Db/RelationalEntity.php index 1dc619758..188a36897 100644 --- a/lib/Db/RelationalEntity.php +++ b/lib/Db/RelationalEntity.php @@ -71,7 +71,7 @@ class RelationalEntity extends Entity implements \JsonSerializable { foreach ($properties as $property => $value) { if (strpos($property, '_') !== 0 && $reflection->hasProperty($property)) { $propertyReflection = $reflection->getProperty($property); - if (!$propertyReflection->isPrivate()) { + if (!$propertyReflection->isPrivate() && !in_array($property, $this->_resolvedProperties, true)) { $json[$property] = $this->getter($property); } }