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

Fixed Admintemplate forum_edit

Discussion in 'Resolved Bug Reports' started by ragtek, Oct 12, 2011.

  1. ragtek

    ragtek Guest

    the redirect after saving a forum isn't working because you've written "no" instead of "on or yes/true/1" in the data-redirect tag

    Code:
    <xen:form action="{xen:adminlink 'forums/save', $forum}"
        class="AutoValidator"
        data-fieldValidatorUrl="{xen:adminlink 'forums/validate-field', $forum}"
        data-redirect="no">
     
    Romchik®, Alluidh and Vincent like this.
  2. Romchik®

    Romchik® Well-Known Member

    Same for edit of Notices.
     
  3. ragtek

    ragtek Guest

    No, notices have

    Code:
    <xen:form class="AutoValidator"
        action="{xen:adminlink 'notices/save', $notice}"
        data-redirect="{xen:if {$notice.notice_id}, off, on}">
    but don't know why they did it this way:D (redirect if new one, no redirect if editing a existing)
     
  4. Romchik®

    Romchik® Well-Known Member

    I think that everywhere should have the same behavior.
     
    ragtek likes this.
  5. Kier

    Kier XenForo Developer Staff Member

    I changed that because I found that I often wanted to make changes, check them and edit again.

    I guess if everyone wants it to redirect I could change it back.
     
  6. ragtek

    ragtek Guest

    I agree, but then it should be the same behaviour in every form (buttons => save, save & close)
     
  7. Kier

    Kier XenForo Developer Staff Member

    Reverted.
     
  8. Perspektif

    Perspektif Active Member

    hi,what this code in the file?
     
  9. ragtek

    ragtek Guest

    admin template
    forum_edit
     
    Perspektif likes this.
  10. Perspektif

    Perspektif Active Member

    ok.thanks;)
     
  11. Vincent

    Vincent Well-Known Member

    XenForo has this awesome feature called "Thread Titles", you might want to check that next time :)
     
    Perspektif likes this.
  12. Perspektif

    Perspektif Active Member

    yes,because I'm sick today realized later..
     

Share This Page