About populateState method on component ListModel models #33765
Unanswered
joomdonation
asked this question in
General
Replies: 1 comment 2 replies
-
looks like it some legacy, maybe Joomla 2, look in to joomla-cms/libraries/src/MVC/Model/ListModel.php Lines 687 to 699 in eddd451 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does anyone knows why we have the code to populate model states like in this block of code https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_modules/src/Model/ModulesModel.php#L92-L96 ?
filter_search
,filter_position
.... to get data to set value for model states (note that we are using search tool, so the values for these input are stored infilter
, not separate inputs like that.So I don't see any reasons the code is needed inside our model classes. Or I'm wrong?
Beta Was this translation helpful? Give feedback.
All reactions