Closed johannesnagl closed 11 years ago
maybe a better and more robust solution would be to throw a ValidationException, that is later on catched and decided, if we can continue (depending on the allowEmpty option).
I just tested with the same settings and no error appeared in my logs. Hrrmmm.
Will add some checks to see if it fixes it.
I'm using Uploader 4.3.5 with the following configuration
When saving a record with leaving the "upload_image" key empty, the code processes as expected, but when looking in my debug-log, I found the following error:
I think, that in AttachmentBehavior's beforeSave foreach loop there is a missing
clause.
Does someone else can repro this issue?