Widget configuration form doesn't validate correctly the fields for width/height (also the full link configuration).
The empty() function doesn't differentiate 0 from '' or NULL so it is alway true saving always the default values and not 0 as needed in that case.
With this patch the ratio aspect always work, at least with Flickr, and also, the link configuration that maintains the desired option.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | emimage_module.patch | 768 bytes | jcmarco |
| #4 | emimage_module.patch | 773 bytes | jcmarco |
| emimage_widget_module.patch | 5.68 KB | jcmarco |
Comments
Comment #1
seaneffel commentedJust tested, seems to have solved the aspect ratio issue I was having. Now values of zero are being stored properly in the h & w fields. I'll mark this as rtbc.
Comment #2
aaron commentedah, thanks for the patch. this is one of those issues that's come up before, and i thought it had been fixed. but sometimes we maintainers (read: me) overwrite each other's changes... :P
i plan to commit this tonight.
Comment #3
alex ua commentedThis worked and is being committed right now. Thanks!
Comment #4
jcmarco commentedIn last commit, there is a line that was not fixed.
There is still a bug with thumbnail height
Comment #5
jcmarco commentedWrong patch before!
Comment #6
alex ua commentedSorry about that. It's committed to dev.