Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ModulesModuleField extends \JFormFieldList
*/
public function getOptions()
{
$clientId = Factory::getApplication()->input->get('client_id', 0, 'int');
$clientId = Factory::getApplication()->getUserState('com_modules.modules.client_id', 0);
$options = ModulesHelper::getModules($clientId);

return array_merge(parent::getOptions(), $options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ModulesPositionField extends ListField
*/
public function getOptions()
{
$clientId = Factory::getApplication()->input->get('client_id', 0, 'int');
$clientId = Factory::getApplication()->getUserState('com_modules.modules.client_id', 0);
$options = ModulesHelper::getPositions($clientId);

return array_merge(parent::getOptions(), $options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected function getInput()
{
$data = $this->getLayoutData();

$clientId = Factory::getApplication()->input->get('client_id', 0, 'int');
$clientId = Factory::getApplication()->getUserState('com_modules.modules.client_id', 0);
$positions = HTMLHelper::_('modules.positions', $clientId, 1, $this->value);

$data['client'] = $clientId;
Expand Down
4 changes: 2 additions & 2 deletions administrator/components/com_modules/forms/moduleadmin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<form>
<fieldset>
<fieldset addfieldprefix="Joomla\Component\Modules\Administrator\Field">
<field
name="id"
type="number"
Expand Down Expand Up @@ -90,7 +90,7 @@

<field
name="position"
type="moduleposition"
type="ModulesPositionedit"
label="COM_MODULES_FIELD_POSITION_LABEL"
default=""
maxlength="50"
Expand Down