More Joomla 5.0 native fixes
This commit is contained in:
parent
447a5fe9b7
commit
c4e411e42e
|
@ -53,7 +53,7 @@
|
||||||
label="JGLOBAL_DESCRIPTION"
|
label="JGLOBAL_DESCRIPTION"
|
||||||
buttons="true"
|
buttons="true"
|
||||||
hide="pagebreak,readmore"
|
hide="pagebreak,readmore"
|
||||||
filter="JComponentHelper::filterText"
|
filter="\Joomla\CMS\Component\ComponentHelper::filterText"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<field
|
<field
|
||||||
|
|
|
@ -16,6 +16,7 @@ namespace Joomla\Component\Weblinks\Administrator\Model;
|
||||||
|
|
||||||
use Joomla\CMS\Application\ApplicationHelper;
|
use Joomla\CMS\Application\ApplicationHelper;
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\Form\Form;
|
||||||
use Joomla\CMS\Helper\TagsHelper;
|
use Joomla\CMS\Helper\TagsHelper;
|
||||||
use Joomla\CMS\Language\Associations;
|
use Joomla\CMS\Language\Associations;
|
||||||
use Joomla\CMS\Language\LanguageHelper;
|
use Joomla\CMS\Language\LanguageHelper;
|
||||||
|
@ -365,7 +366,7 @@ class WeblinkModel extends AdminModel
|
||||||
*
|
*
|
||||||
* @since 3.6.0
|
* @since 3.6.0
|
||||||
*/
|
*/
|
||||||
protected function preprocessForm(\JForm $form, $data, $group = 'content')
|
protected function preprocessForm(Form $form, $data, $group = 'content')
|
||||||
{
|
{
|
||||||
if ($this->canCreateCategory()) {
|
if ($this->canCreateCategory()) {
|
||||||
$form->setFieldAttribute('catid', 'allowAdd', 'true');
|
$form->setFieldAttribute('catid', 'allowAdd', 'true');
|
||||||
|
|
Loading…
Reference in New Issue