Dark Mode Enable Slider Error

    • January 9, 2023 at 6:55 pm #14580
      S
      Stephen@EhOS
      Participant

      I am receiving the follow “error” code beside the Dark Mode enablement slider.  It does not appear in the OSTicket Awesome demo environment.

    • January 18, 2023 at 9:01 am #14730
      Reinier Nissen
      Participant

      This is actually caused by a typo in their code. Its an easy fix. Open /include/staff/profile.inc.php and edit line 557, from
      <input type="radio" id="dark_mode_radio" name="dark_mode" class="switch nullable" <? echo $staff->getExtraAttr("dark_mode", "false")  == "on" ? "checked='checked'" : "" ?>>

      to

      <input type="radio" id="dark_mode_radio" name="dark_mode" class="switch nullable" <?php echo $staff->getExtraAttr("dark_mode", "false")  == "on" ? "checked='checked'" : "" ?>>

       

      (They are missing the “php” tag before the echo)

    • January 29, 2023 at 4:05 pm #14920
      William Kirwin
      Participant

      Thank you!

You must be logged in to reply to this topic.