-
Bug Report FormAuto
Hello Thyon
You forgot to include the useHomeDir of TYPOlight form generator.
On line 1287 paste following lines:
Code:
// Overwrite upload folder with user home directory
if ($USEHOMEDIR && FE_USER_LOGGED_IN)
{
$this->import('FrontendUser', 'User');
if ($this->User->assignDir && $this->User->homeDir && is_dir(TL_ROOT . '/' . $this->User->homeDir))
{
$value = $this->User->homeDir . '/' . $arrFiles[$key]['name'];
}
}
By $USEHOMEDIR you must set the right parameter. I didn't get the right useHomeDir from tl_form_fields. If $USEHOMEDIR = true its overwrite upload folder with user home directory.
I'm sorry for my bad english. I hope you understand me. Thanks for changing.
-
Re: Bug Report FormAuto
-
Re: Bug Report FormAuto
I don't know why you wouldn't help, but I have fix it:
Code:
// Overwrite upload folder with user home directory
if ($field['useHomeDir'] && FE_USER_LOGGED_IN)
{
$this->import('FrontendUser', 'User');
if ($this->User->assignDir && $this->User->homeDir && is_dir(TL_ROOT . '/' . $this->User->homeDir))
{
$value = $this->User->homeDir . '/' . $arrFiles[$key]['name'];
}
}
-
Re: Bug Report FormAuto
Its not that I didn't want to help. I just didn't have the time. Thanks for your fix. I'll check it and upload.