symfony2admingenerator / AvocodeFormExtensionsBundle

(old-legacy) Symfony2 form extensions for Admingenerator project (also working standalone!)
Other
48 stars 31 forks source link

Fix 'deleteable' option on 'single_upload'. #62

Closed Restless-ET closed 10 years ago

Restless-ET commented 10 years ago

The value of the delete input field "$childPost['delete']", which is inserted on the array containing the configurations at the preSubmit() method, was not being verified at the onSubmit() method. This was causing the file to "always" (if no new file was set for uploading on that field) be deleted when submitting the form just by having the 'deleteable' option active.

ioleo commented 10 years ago

@Restless-ET merged, thanks