silverstripe/silverstripe-framework — pull request #2092 by robert-h-curry (2013-06-12 23:37:00+00:00)
Title: Force TreeDropdown to remember selected title.

`.TreeDropdownField.searchable::resetTitle()` is called (line 285) when the user clicks away from the dropdown field, and this function uses `data('title')` to reset the title. However this is never set when the user selects something! So it always displays the last title - "(Choose)" - after a selection.

This change sets `data('title')` to the title of the chosen node when it is selected.