silverstripe/sapphire — pull request #790 by patbolo (2012-09-12 21:35:01+00:00)
Title: FIX 7862

Strict equality check on previously selected item in the TreeDropdownField. If an item has an ID of 1, checking using '==' as opposed to '===' results in a false positive (because 1is seen as a boolean value set to true, instead of being seen as an integer) that prevents users to select this item, as this item is seen as previously selected already, but it's not the case.