Bug 12943 - Dialog search all sections lose reference to their parent root element
Summary: Dialog search all sections lose reference to their parent root element
Alias: None
Product: iOS
Classification: Xamarin
Component: MonoTouch.Dialog (show other bugs)
Version: 6.9.3.x
Hardware: Macintosh Mac OS
: --- enhancement
Target Milestone: Future Cycle (TBD)
Assignee: Bugzilla
Depends on:
Reported: 2013-06-28 15:26 UTC by stremblay
Modified: 2017-11-16 18:20 UTC (History)
3 users (show)

See Also:
Is this bug a regression?: No
Last known good build:

Suggested change (971 bytes, text/plain)
2013-07-02 12:25 UTC, stremblay

Description stremblay 2013-06-28 15:26:54 UTC
In the PerformFilter method in the DialogViewController Class. sections are added to a list if their elements are matches to the searched text. But instead of using the RootElement Add method, the list of sections just overwrites the internal Sections list. Since the Add method is not called, then the Parent property on the Sections is not set. So all my sections in the root have a null Parent property value after I type a character into the search bar.

I would suggest changing the following line in the PerformFilter method.

this.Root.Sections = lists;



or something along those lines.
Comment 1 stremblay 2013-07-02 12:25:34 UTC
Created attachment 4257 [details]
Suggested change

this is the suggested change to the performfilter method in the dialogviewcontroller class

Note You need to log in before you can comment on or make changes to this bug.