Skip to content

Commit

Permalink
Merge pull request #832 from joomlatools/feature/831-location
Browse files Browse the repository at this point in the history
Content-location not correct
  • Loading branch information
johanjanssens authored Dec 3, 2021
2 parents 6ea18b4 + 91eeed5 commit 3eb04c7
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions code/model/collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,6 @@ protected function _initializeContext(KModelContext $context)
$context->data = $this->filterData($data);
}

public function setState(array $values)
{
//Automatically create states that don't exist yet
foreach($values as $name => $value)
{
if(!$this->getState()->has($name)) {
$this->getState()->insert($name, 'string');
}
}

return parent::setState($values);
}

final public function hash($refresh = false)
{
$context = $this->getContext();
Expand Down

0 comments on commit 3eb04c7

Please sign in to comment.