Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found a php notice when #theme is empty in _radix_process_input().
Notice: Undefined index: #theme em _radix_process_input() (linha 114 de /home/ubuntu/myproject/builds/20150825-152232/profiles/myproject/themes/radix/includes/form.inc).
Comment | File | Size | Author |
---|---|---|---|
#9 | radix-undefined-theme-2557385-9.patch | 583 bytes | dsnopek |
Comments
Comment #2
gneutzling CreditAttribution: gneutzling at Taller commentedFix.
Comment #3
gneutzling CreditAttribution: gneutzling commentedComment #4
edmargomes CreditAttribution: edmargomes commentedWorks for me!!
Comment #5
sebas5384 CreditAttribution: sebas5384 commentedhey @barraponto what do you think? could we merge this patch?
Comment #6
ndf CreditAttribution: ndf commentedNow tests same way for #type and #theme before adding the class
form-control
Before it was only checking
!empty
for #type.Comment #7
sw3b CreditAttribution: sw3b commentedWork for me also ! Thanks
Comment #8
dsnopekActually, I don't think this patch is right. If
$element['#theme']
is empty, then we don't need to make sure that it isn't on our blacklist. However, the current code in the patch will count not having the '#theme' key as equivalent to having a '#theme' that's on the blacklist. Instead, I think we should let any element that doesn't have '#theme' pass.Comment #9
dsnopekHere's a patch that fixes the issue I raised in #8
Comment #10
michael_wojcik CreditAttribution: michael_wojcik commentedThanks for the patch, @gneutzling and @dsnopek! Works great for me too!
Comment #11
gneutzling CreditAttribution: gneutzling commentedComment #12
handrus CreditAttribution: handrus commented+1! Works for me too!
Comment #14
dsnopekThanks, everyone, for the testing! Committed. :-)