Fix wish image not being saved
This commit is contained in:
parent
3f62c1bf90
commit
d341e2b35c
1 changed files with 4 additions and 0 deletions
|
@ -80,6 +80,8 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
||||||
$wish_description = $info->description;
|
$wish_description = $info->description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$wish_image = is_null($info->image) ? 'NULL' : "' . $info->image . '";
|
||||||
|
|
||||||
$response = array(
|
$response = array(
|
||||||
'info' => $info,
|
'info' => $info,
|
||||||
);
|
);
|
||||||
|
@ -93,6 +95,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
||||||
`wishlist`,
|
`wishlist`,
|
||||||
`title`,
|
`title`,
|
||||||
`description`,
|
`description`,
|
||||||
|
`image`,
|
||||||
`url`,
|
`url`,
|
||||||
`priority`,
|
`priority`,
|
||||||
`is_purchasable`
|
`is_purchasable`
|
||||||
|
@ -101,6 +104,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
||||||
' . $wishlist_id . ',
|
' . $wishlist_id . ',
|
||||||
"' . $wish_title . '",
|
"' . $wish_title . '",
|
||||||
"' . $wish_description . '",
|
"' . $wish_description . '",
|
||||||
|
' . $wish_image . ',
|
||||||
"' . $wish_url . '",
|
"' . $wish_url . '",
|
||||||
' . $wish_priority . ',
|
' . $wish_priority . ',
|
||||||
' . $wish_is_purchasable . '
|
' . $wish_is_purchasable . '
|
||||||
|
|
Loading…
Reference in a new issue