diff --git a/index.php b/index.php index a44c778..c625b77 100644 --- a/index.php +++ b/index.php @@ -162,7 +162,7 @@ Router\post_action('change-item-status', function() { $id = Model\decode_item_id(Request\param('id')); Response\json(array( - 'item_id' => urlencode($id), + 'item_id' => Model\encode_item_id($id), 'status' => Model\switch_item_status($id) )); });