Replace an old urlencode by encode_item_id()

This commit is contained in:
Frederic Guillot 2013-06-13 21:40:08 -04:00
parent 8bcc7339e4
commit 9151a295e5

View File

@ -162,7 +162,7 @@ Router\post_action('change-item-status', function() {
$id = Model\decode_item_id(Request\param('id')); $id = Model\decode_item_id(Request\param('id'));
Response\json(array( Response\json(array(
'item_id' => urlencode($id), 'item_id' => Model\encode_item_id($id),
'status' => Model\switch_item_status($id) 'status' => Model\switch_item_status($id)
)); ));
}); });