Skip to content

Commit da60251

Browse files
Fix third-party component help in com_config (#13286)
1 parent 6a2be88 commit da60251

File tree

1 file changed

+6
-1
lines changed
  • administrator/components/com_config/view/component

1 file changed

+6
-1
lines changed

administrator/components/com_config/view/component/html.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ protected function addToolbar()
9898
JToolbarHelper::divider();
9999
JToolbarHelper::cancel('config.cancel.component');
100100
JToolbarHelper::divider();
101-
JToolbarHelper::help('JHELP_COMPONENTS_' . $this->currentComponent . '_OPTIONS');
101+
102+
$helpUrl = $this->form->getData()->get('helpURL');
103+
$helpKey = (string) $this->form->getXml()->config->help['key'];
104+
$helpKey = $helpKey ?: 'JHELP_COMPONENTS_' . strtoupper($this->currentComponent) . '_OPTIONS';
105+
106+
JToolbarHelper::help($helpKey, (boolean) $helpUrl, null, $this->currentComponent);
102107
}
103108
}

0 commit comments

Comments
 (0)