fix output of default path-value if path-select-mode is 'Manual', fixes #642
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -28,7 +28,8 @@ return array(
|
|||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value']
|
'select_var' => $pathSelect['value'],
|
||||||
|
'value' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'options_indexes' => array(
|
'options_indexes' => array(
|
||||||
'label' => $lng['extras']['directory_browsing'],
|
'label' => $lng['extras']['directory_browsing'],
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ return array(
|
|||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value']
|
'select_var' => $pathSelect['value'],
|
||||||
|
'value' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'username' => array(
|
'username' => array(
|
||||||
'label' => $lng['login']['username'],
|
'label' => $lng['login']['username'],
|
||||||
|
|||||||
@@ -38,7 +38,8 @@ return array(
|
|||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value']
|
'select_var' => $pathSelect['value'],
|
||||||
|
'value' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'ftp_password' => array(
|
'ftp_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => $lng['login']['password'],
|
||||||
|
|||||||
@@ -32,13 +32,14 @@ return array(
|
|||||||
'label' => $lng['panel']['path'],
|
'label' => $lng['panel']['path'],
|
||||||
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
'desc' => ($settings['panel']['pathedit'] != 'Dropdown' ? $lng['panel']['pathDescription'] : null).(isset($pathSelect['note']) ? '<br />'.$pathSelect['value'] : ''),
|
||||||
'type' => $pathSelect['type'],
|
'type' => $pathSelect['type'],
|
||||||
'select_var' => $pathSelect['value']
|
'select_var' => $pathSelect['value'],
|
||||||
|
'value' => $pathSelect['value']
|
||||||
),
|
),
|
||||||
'ftp_password' => array(
|
'ftp_password' => array(
|
||||||
'label' => $lng['login']['password'],
|
'label' => $lng['login']['password'],
|
||||||
'desc' => $lng['ftp']['editpassdescription'],
|
'desc' => $lng['ftp']['editpassdescription'],
|
||||||
'type' => 'password',
|
'type' => 'password',
|
||||||
),
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -42,7 +42,9 @@ function makePathfield($path, $uid, $gid, $fieldType, $value = '')
|
|||||||
// but dirList holds the paths with starting slash
|
// but dirList holds the paths with starting slash
|
||||||
// so we just add one here to get the correct
|
// so we just add one here to get the correct
|
||||||
// default path selected, #225
|
// default path selected, #225
|
||||||
|
if ($value != '/') {
|
||||||
$value = '/'.$value;
|
$value = '/'.$value;
|
||||||
|
}
|
||||||
|
|
||||||
if($fieldType == 'Manual')
|
if($fieldType == 'Manual')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user