The attached patch fixes this.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | imagecache_profiles.module.patch | 1000 bytes | joelstein |
| #2 | 1079064-notice.patch | 971 bytes | andypost |
| #1 | imagecache_profiles.module.patch | 986 bytes | joelstein |
| imagecache_profiles.module.patch | 592 bytes | joelstein |
Comments
Comment #1
joelstein commentedI found another bug in imagecache_profiles_form_user_profile_form_alter(). It needs to check if the 'picture' form item is present, which is won't be if editing one of the profile category forms.
The patch has been updated to fix this.
Comment #2
andypostPlease, provide a patch against current code from 6.x-1.x git branch...
There's no such code in 6.x-1.x branch. $size was changed to $preset and I'm not sure that logic is correct...
Suppose it's better to add !empty($preset) for previous if statement.
Any reason to check for this key?
Powered by Dreditor.
Comment #3
joelstein commentedSorry. I updated the patch. The problem still exists, and this patch fixes it.
Yes, because your code depends on the 'picture' form item being present, which it won't be if editing one of the profile category forms (if Profile is installed).
Comment #4
andypostOk, seems good. Let's get more reviews before commit.
PS In future please use
diff -uto produce a patch in unified format - it's much easy to see which functions been changed.Comment #5
andypostcommited to 6 & 7 branch