Closed hugofabricio closed 11 years ago
I removed the line $ model-> id = null; in AttachmentBehavior.php function deletefiles and is working now.
i have the same problem, started after i updated the Uploader plugin
comment the line seems to be the way :+1:
I'm having the same issue - again, solved by commenting this line
+1 here
Do you mean the record in the DB isn't deleted?
I set the ID to null as deleteFiles() modifies the ID during the process. I'll look into it, but I can understand why it messes up.
Yes, the image is removed, but the record remains in the database, removed the line $ model-> id = null, and worked perfectly.
Hey thanks hugofabricio I removed that from line 476 in the AttachmentBehavior and I was able to delete again. Thanks!
I have the following problem when remove a record, only the images are removed, the registry is still there, removed the plugin and registration is usually removed then it is problem, someone has gone through this?
Model: https://gist.github.com/hugofabricio/6812344
Controller: https://gist.github.com/hugofabricio/6813288