Bug #179
Uploads on an article which fails validation disappear
| Status: | Closed | Start: | ||
| Priority: | Urgent | Due date: | ||
| Assigned to: | yossarian | % Done: | 0% |
|
| Category: | Content | |||
| Target version: | 0.5 - Subcommandante Maqui | |||
| Resolution: | fixed |
Description
If somebody takes the time to upload like 10 photos, but let's say forgets to put in a "body" for the article, the sub_list of photos disappears (except for the first one) when validation fails, which is going to be a huge source of frustration.
I am wondering if it might have something to do with the fact that sub_list has been hacked in order to allow it to extend multiple superclasses - the Article and Event classes both inherit from Post which Inherits from Content which inherits from ActiveRecord::Base, and sub_list needed to have a new parent_superclass parameter added to it in order to deal with this. However this may not have been accounted for in the plugin hack I did (available here).
History
Updated by yossarian over 3 years ago
- Status changed from New to Assigned
Updated by yossarian over 3 years ago
- Status changed from Assigned to Closed
- Resolution set to fixed
This should be fixed by r581. Thanks to maqui for catching this one!