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