S
Syndol
Guest
When a featured resource is moved to a new category it no longer is featured even though it is still in the feature table.
Changing the condition in the Category datawriter resourceUpdate() function from:
to:
seems to fix this.
Changing the condition in the Category datawriter resourceUpdate() function from:
Code:
if ($resource->isUpdate() && $resource->isChanged('resource_state'))
{
$this->updateFeaturedCount();
}
Code:
if ($resource->isUpdate() && ($resource->isChanged('resource_state') || $resource->isChanged('resource_category_id')))
{
$this->updateFeaturedCount();
}