[Resolved] Scroll to top icon no longer available?

    • August 3, 2020 at 3:09 pm #6171
      stevland
      Keymaster

      Hi @thedarkguver

      We recently discovered that our code is not working as intended on servers that, for whatever reason, have short_open_tag turned off in the PHP config.

      Please open /include/staff/header.inc.php and change lines 114 and 115 

      from

      let desktopScrollOption=<?echo $custom["scroll-to-top-option"] !="true" || $custom["desktop-scroll-option"]!="true"?"false":"true"?>;
      let mobileScrollOption=<?echo $custom["scroll-to-top-option"] !="true" || $custom["mobile-scroll-option"]!="true"?"false":"true"?>;

      to

      let desktopScrollOption=<?php echo $custom["scroll-to-top-option"] !="true" || $custom["desktop-scroll-option"]!="true"?"false":"true"?>;
      let mobileScrollOption=<?php echo $custom["scroll-to-top-option"] !="true" || $custom["mobile-scroll-option"]!="true"?"false":"true"?>;

      Sorry for the trouble, and thank you for your report.

      Previous/ next ticket buttons would require a significant modification of osTicket’s core code — something that we try to avoid. But it would be useful and it is something that we do think about.

    • May 2, 2021 at 11:27 am #7623
      R
      thedarkguver
      Participant

      Hey Steveland,

      Does the above mentioned fix for 1.14.2 also apply to 1.15.1 Rev 1 ?  The same issue exists, lack of a scroll and is also present in 1.15.1  – however I see where to apply the fix in /include/staff/header.inc.php.  Lines 114 and 115 are missing the code you referred to below:

      “let desktopScrollOption=<?echo $custom[“scroll-to-top-option”] !=”true” || $custom[“desktop-scroll-option”]!=”true”?”false”:”true”?>;
      let mobileScrollOption=<?echo $custom[“scroll-to-top-option”] !=”true” || $custom[“mobile-scroll-option”]!=”true”?”false”:”true”?>;”

      Thanks for your help.

You must be logged in to reply to this topic.