1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Draft not show in add-post action.

Discussion in 'Resolved Bug Reports' started by Nobita.Kun, Dec 17, 2015.

Tags:
  1. Nobita.Kun

    Nobita.Kun Well-Known Member

  2. Chris D

    Chris D XenForo Developer Staff Member

    I'm not sure I understand this report.

    I've tried a few things but I can't actually see anything wrong.
     
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    Wait a sec. I will try to create an GIF for that.
     
  4. Nobita.Kun

    Nobita.Kun Well-Known Member

    Here :)
     

    Attached Files:

  5. Jake B.

    Jake B. Well-Known Member

  6. Nobita.Kun

    Nobita.Kun Well-Known Member

  7. Jake B.

    Jake B. Well-Known Member

    Ah didn't notice you posted a gif, tab was open a while, can't really tell what's going on there though :p
     
  8. Chris D

    Chris D XenForo Developer Staff Member

    There's actually no draft handling on this page - we save them but we don't retrieve them; even if we did there's a chance it would get overridden by this:
    PHP:
    else if ($this->_input->inRequest('more_options'))
    {
        
    $defaultMessage $this->getHelper('Editor')->getMessageText('message'$this->_input);
    }
    'more_options' will always appear in the request as refreshing the page which was retrieved via a POST request will resubmit the same data.
     
    Nobita.Kun likes this.
  9. Mike

    Mike XenForo Developer Staff Member

    I've added draft handling here. Note that it's basically only relevant if you go to threads/<id>/reply directly. If you are doing a "more options" click or are quoting a message, these will override the draft display.
     
    Jake B. likes this.
  10. Jake B.

    Jake B. Well-Known Member

    I think the biggest issue is if you refresh :)
     
  11. Mike

    Mike XenForo Developer Staff Member

    In what scenario? If you're refreshing in a case where you've hit more options or quoted a message, there's actually an explicit action there of what you want to do, and it doesn't necessarily match with what draft is saved. You'll see some cases like this in the conversation system.
     

Share This Page