Closed (fixed)
Project:
Features
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Mar 2011 at 22:02 UTC
Updated:
26 Jan 2012 at 07:10 UTC
This error was highlighted in the features_test.module and features.test.
The default field setting was
'settings' => array(
'text_processing' => '0',
),
The Normal field setting was
'settings' => array(
'text_processing' => '0',
'user_register_form' => false,
),
Default was sanitized to
'settings' => array(
0 => '0',
),
While normal was sanitized to
'settings' => array(),
Sanitization needs some work....
Comments
Comment #1
febbraro commentedOk, it was misidentifying if the array was associative or not when there was only one item in the array. The following patch fixes it, it should probably be backported to D6.
http://drupalcode.org/project/features.git/blobdiff_plain/240fc89a02fd28...
Comment #2
febbraro commentedComment #3
hefox commentedHm interesting; is_assoc check changed already so need to work on patch to get it to apply.
Comment #4
hefox commentedThought so; this is a duplicate of #931782: _features_sanitize: Type casting in array comparison causes is_assoc to fail with 1 item assoc arrays, which I already commited to 6.x; would you prefer I revert that one and backport this instead?
Comment #5
hefox commentedSince the bug is fixed in both, might as well leave it alone.