-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Conversation
This could potentially have negative side effects. Generally the select instance becomes cached and this removes it which if you build out a select and then call getSelect it may rebuild the select again. Maybe it should be resolved by instantiating the object? |
what you mean by instantiating the object ? the issue is when same object re-populate the options data with other option. what your suggestion ? |
@samsonasik I'd argue that the better approach is to reset the |
… $exclude changed
@weierophinney done ;). Added condition to reset |
- Reset the select object whenever any of the various setters are called that could modify the behavior of the select.
Wasn't quite what I was getting at, @samsonasik - but I updated it to do it properly. Essentially, whenever any of the setters are called for table, schema, field, or exclude, the |
@weierophinney thank you ;) |
- Reset the select object whenever any of the various setters are called that could modify the behavior of the select.
Fixes #4521