| @@ -218,9 +218,11 @@ | ||
| 218 | 218 | $this->model->update( $blockData, $calculatePinPoint ); |
| 219 | 219 | $this->model->save(); |
| 220 | 220 | |
| 221 | 221 | // Send the changes properties back to client. |
| 222 | - foreach ( $postedblockPartialData as $property => $value ) | |
| 222 | + $updatedBlockData = $this->model->getBlock($id, null, array('*'), ARRAY_A); | |
| 223 | + | |
| 224 | + foreach ( $updatedBlockData as $property => $value ) | |
| 223 | 225 | { |
| 224 | 226 | $response[ $id ][ $property ][ 'value' ] = $value; |
| 225 | 227 | } |
| 226 | 228 | |
| @@ -233,8 +235,9 @@ | ||
| 233 | 235 | |
| 234 | 236 | // Save changes. |
| 235 | 237 | $this->model->save(); |
| 236 | 238 | |
| 239 | + // Return | |
| 237 | 240 | // Set response. |
| 238 | 241 | $this->response = $response; |
| 239 | 242 | |
| 240 | 243 | } |