Replace an old urlencode by encode_item_id()
This commit is contained in:
parent
8bcc7339e4
commit
9151a295e5
@ -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)
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user