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).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gneutzling created an issue. See original summary.

gneutzling’s picture

FileSize
584 bytes

Fix.

gneutzling’s picture

Status: Active » Needs review
edmargomes’s picture

Works for me!!

sebas5384’s picture

hey @barraponto what do you think? could we merge this patch?

ndf’s picture

Status: Needs review » Reviewed & tested by the community

Now tests same way for #type and #theme before adding the class form-control
Before it was only checking !empty for #type.

sw3b’s picture

Work for me also ! Thanks

dsnopek’s picture

Status: Reviewed & tested by the community » Needs work

Actually, 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.

dsnopek’s picture

Status: Needs work » Needs review
FileSize
583 bytes

Here's a patch that fixes the issue I raised in #8

michael_wojcik’s picture

Thanks for the patch, @gneutzling and @dsnopek! Works great for me too!

gneutzling’s picture

Status: Needs review » Reviewed & tested by the community
handrus’s picture

+1! Works for me too!

  • dsnopek committed 4cfaea5 on 7.x-3.x authored by gneutzling
    Issue #2557385 by gneutzling, dsnopek: Undefined index: #theme in...
dsnopek’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, everyone, for the testing! Committed. :-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.