diff --git a/webapp/services/PropertyChgService.php b/webapp/services/PropertyChgService.php index 1df6173b..4fbf44a8 100644 --- a/webapp/services/PropertyChgService.php +++ b/webapp/services/PropertyChgService.php @@ -48,10 +48,13 @@ class PropertyChgService extends BaseService { public function toDto() { - return array( - 'user_info' => $this->userChg ? User::info(myself()->_getOrmUserInfo()) : null, + $data = array( 'container_chg' => $this->chgList ); + if ($this->userChg) { + $data['user_info'] = User::info(myself()->_getOrmUserInfo()); + } + return $data; } private function internalAddChg($name)