sleeping-owl / admin

Administrative interface builder for Laravel
http://sleeping-owl.github.io/
MIT License
504 stars 259 forks source link

Error on image deletion: Unknown column 'picConfirmDelete' #284

Open SubniC opened 8 years ago

SubniC commented 8 years ago

Hello,

When i try to delete an imagen on Admin 1.3.28 with Laravel 4.2 i get an SQL error as follow, the action is done correctly (the image is deleted) but the error happens agfter i hit the save button.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'picConfirmDelete' in 'field list' (SQL: update `cursos` set `updated_at` = 2015-11-11 12:35:05, `pic` = , `picConfirmDelete` = on where `id` = 12)

Checking the HTTP parameters i see that the picConfirmDelete field is send alog with the form, but when it reaches the model UPDATE funcion it fails (that field doest not exists in the database.

------WebKitFormBoundarynztjlfW4rbdnkaNx
Content-Disposition: form-data; name="picConfirmDelete"

on

I hope you can help me :)

Thanks in advanced.

harpster604 commented 8 years ago

Getting the same error here.

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'img_thumbConfirmDelete' in 'field list' (SQL: update `plants` set `updated_at` = 2015-12-21 00:05:41, `img_thumbConfirmDelete` = on where `id` = 10)

It is trying to find a column that is the name of the image column in my database plus the string "ConfirmDelete" appended to it.