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

febbraro’s picture

Status: Active » Patch (to be ported)

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

febbraro’s picture

Version: 7.x-1.0-beta1 » 6.x-1.0
hefox’s picture

Version: 6.x-1.0 » 6.x-1.x-dev

Hm interesting; is_assoc check changed already so need to work on patch to get it to apply.

hefox’s picture

Thought 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?

hefox’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Patch (to be ported) » Fixed

Since the bug is fixed in both, might as well leave it alone.

Status: Fixed » Closed (fixed)

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