because
array('one' => 'one', 'two' => 0) == array('one' => 0, 'two' => 'two')

because
'one' == 0

f ($field + $existing_field != $existing_field) {

will not pass

patches changes all relavent != to !==

CommentFileSizeAuthor
#1 features_field_screw_you_php.patch2.22 KBhefox
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hefox’s picture

hefox’s picture

Title: Unable to soley change content type referenced in node references due to how much PHP sucks » Unable to update a field/field_instance/field_base when equality operator things not-same arrays are the same
mpotter’s picture

Status: Needs review » Fixed

Wow, how did we not catch that earlier. Good catch hefox! Pretty obvious this needs committing asap.

Committed to 70daa4a.

Status: Fixed » Closed (fixed)

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