Results 1 to 4 of 4

Thread: Bug Report FormAuto

  1. #1
    New user
    Join Date
    09-13-09.
    Posts
    4

    Default 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.

  2. #2
    New user
    Join Date
    09-13-09.
    Posts
    4

    Default Re: Bug Report FormAuto

    Can't you help?

  3. #3
    New user
    Join Date
    09-13-09.
    Posts
    4

    Default 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'];
        					}
    	    			}

  4. #4
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •