in controller admin image, line 80
i comment the "if" because i cant update new images
please check it
sorry my english
//if ($upload->has('image')) {
$sql = "update image set filename = '?' where image_id = '?'";
$database->query($database->parse($sql, $upload->getName('image'), $request->get('image_id')));
//}
i comment the "if" because i cant update new images
please check it
sorry my english
//if ($upload->has('image')) {
$sql = "update image set filename = '?' where image_id = '?'";
$database->query($database->parse($sql, $upload->getName('image'), $request->get('image_id')));
//}
I think what it means is this:etapombas wrote: in controller admin image, line 80
i comment the "if" because i cant update new images
please check it
sorry my english
//if ($upload->has('image')) {
$sql = ";
$database->query($database->parse($sql, $upload->getName('image'), $request->get('image_id')));
//}
If for some reason the user hasn't clicked on the UPDATE button, that is, no image has been specified in the POST query string, it won't do the SQL command:
Code: Select all
update image set filename = '?' where image_id = '?'
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I've tried clicking both update/save buttons and there's no effect. However it's working when I comment that if statement, seems like a bug to meI think what it means is this:
If for some reason the user hasn't clicked on the UPDATE button, that is, no image has been specified in the POST query string, it won't do the SQL command:which makes perfect sense to me. Unless there is a bug elsewhere.Code: Select all
update image set filename = '?' where image_id = '?'

It happens when there was no image selected/saved in the first place.Qphoria wrote: When I goto Admin->Catalog->Images and edit image 1 and upload a new file called "image_1.jpg" and click save, it shows my new image. What are you seeing ?
To replicate -
Add a new image record but do not select a file so there is no image pic for the image record
Now go back to that record and not able to select a filename for that record
Comment out the "if" statement referred to above and it now works
Who is online
Users browsing this forum: No registered users and 1 guest