Bellow is a patch to a bug I found in field_sql_storage.module at function field_sql_storage_field_storage_details(). (my first patch, so tell me if I did it right... :-)
Simple matter of instantiating an array variable before adding values to it. This is a case of instantiating the wrong variable. Should be $columns = array() instead of $details = array().
This bug was causing one of my fields (only one, and not all, which seems odd) to throw an error on the node edit page.
Notice: Undefined variable: columns in field_sql_storage_field_storage_details() (line 689 of /Users/www/care.dev.local/modules/field/modules/field_sql_storage/field_sql_storage.module).
Notice: Undefined variable: columns in field_sql_storage_field_storage_details() (line 692 of /Users/www/care.dev.local/modules/field/modules/field_sql_storage/field_sql_storage.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | drupal-909642.patch | 847 bytes | Jackinloadup |
| field_sql_storage.field_storage_details.columns_array.diff | 343 bytes | manimejia |
Comments
Comment #1
manimejia commentedComment #3
manimejia commentedReally should be fixed. Sorry about the faulty patch. Just take a look bellow and you will see ...
$details = array();should be$columns = array();... pretty obvious :Comment #4
Jackinloadup commentedThis is only a patch to the issue stated above. It seems to fix my issue. I didn't do extensive testing.
Comment #5
Jackinloadup commentedComment #6
mr.baileysDuplicate of #778240: field_sql_storage_field_storage_details() is messy