Unable add to the value on the configuration form.

Created on 25 April 2023, about 1 year ago
Updated 8 May 2023, about 1 year ago

Problem/Motivation

I am trying to add Nginx proxy detail on setting form. but unable to add value there because some fields are disabled.

Steps to reproduce

1. Install the module.
2. access the setting form (admin/config/nginx_proxy_manager_connector/nginxproxysettings).
3. These field are disabled Default Forward Host,Email and Password.

Proposed resolution

Need to remove disabled option from form api.

 $form['default_forward_host'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Default Forward Host'),
      '#description' => $this->t('Enter the default forward host to be used for the proxy hosts created by the module (Update .env file to modify the value)'),
      '#maxlength' => 64,
      '#size' => 64,
      '#default_value' => $_ENV['NGINX_PROXY_MANAGER_DEFAULT_FORWARD_HOST'],
      '#disabled' => TRUE,
    ];

TO

 $form['default_forward_host'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Default Forward Host'),
      '#description' => $this->t('Enter the default forward host to be used for the proxy hosts created by the module (Update .env file to modify the value)'),
      '#maxlength' => 64,
      '#size' => 64,
      '#default_value' => $_ENV['NGINX_PROXY_MANAGER_DEFAULT_FORWARD_HOST'],
      
    ];

Remaining tasks

None

User interface changes

Yes

API changes

None

Data model changes

None

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India shashank5563 New Delhi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024