RSS Feed/News Admin search might show link to unreachable option

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,003
Points
823

Reputation:

PHP:

Code:
public function actionView(ParameterBag $params)
{
    $option = $this->assertOptionExists($params['option_id']);
    $relation = $option->Relations->first();
    $group = $relation ? $relation->OptionGroup : null;

return $this->redirect(
        $group ? $this->buildLink('options/groups', $group) . '#' . $option->option_id : $this->buildLink('options')
    );
}

If the option is shown in multiple groups and the first group belongs to an Add-on that is disabled only an error...

Read more

Continue reading...
 
Status
Not open for further replies.
Top