Skip to content
Snippets Groups Projects
  1. Feb 21, 2018
    • JediKev's avatar
      oops: Fix randNumber() · 5b8b95ab
      JediKev authored
      This addresses an issue where the `randNumber()` function would crash on
      32-Bit systems if the ticket format was set to a really high amount of
      digits (eg. ###################). This is because the `max()` value that
      was being passed to `mt_rand()` exceeded the `mt_getrandmax()` limit which
      caused an error. This updates the function to generate a random number for
      each digit to avoid the `mt_getrandmax()` limit.
      5b8b95ab
  2. Apr 24, 2017
    • Peter Rotich's avatar
      DateTime · 69b85f0d
      Peter Rotich authored
      Address edge cases where timezone mixups happens on DateTimeField
      
      Allow datetime field to be timezone agnostic (not timezone aware) to display
      the timezone used to set the field. The timezone of the last user or agent
      that edited the field is used.
      69b85f0d
  3. Mar 25, 2016
  4. Feb 05, 2016
  5. Dec 31, 2015
  6. Jul 13, 2015
    • Peter Rotich's avatar
      Bug fixes · a9b52e17
      Peter Rotich authored
      * Preserve external storage flag on field configuration
      * User gridlayout to render task's forms
      * Use new roles for task's nav
      
      Credit: Jared Hancock <jared@osticket.com>
      a9b52e17
  7. Jun 25, 2015
    • Jared Hancock's avatar
      search: Fix several things related to search · 3a79ac6e
      Jared Hancock authored
      orm: Correctly label correlated query joins via sub-queries
      orm: Fixup formatting of dates in queries
      orm: Fixup mangling of parameter values with colons in sub-queries
      misc: Fixup incorrect offset calculation in Misc::dbtime()
      forms: search: Add ability to describe a field search
      search: Fix crash searching by ticket due date
      search: Fix wrong results if searching by a date field (unix epoch was not
          converted to MySQL date format)
      search: Fix wrong results searching by date == or !=
      3a79ac6e
  8. Jun 24, 2015
    • Jared Hancock's avatar
      oops: Fix several small issues · a0e84ddf
      Jared Hancock authored
      * Fix warning for negative unix timestamps in Misc::db2gmtime
      * Fix crash because of parser context passed to getXxx functions
      * Fix inability to update email address
      a0e84ddf
  9. May 21, 2015
    • Jared Hancock's avatar
      i18n: Support Olson style timezone for MySQL · dc9bf461
      Jared Hancock authored
      This patch attempts to query or detect the Olson style timezone
      (e.g. America/Chicago) from the database. This is preferred over the
      previous code as the previous code would always consider the current
      database GMT offset rather than the GMT offset of the date being converted
      (which might be on the other side of a DST transition).
      dc9bf461
  10. Feb 12, 2015
    • Jared Hancock's avatar
      Collaborators for threads, lock as a utility · 67d55198
      Jared Hancock authored
      This patch includes a slight database migration, and adjusts the
      functionality of a few core components.
      
        * Move collaborators from the ticket to the thread.
          This concept allows collaborators on any object which has a thread,
          including tasks.
      
        * Add flags to the thread entry
          This will allow flagging thread entries for different purposes.
          Initially this can be used to flag the original message of a thread in
          case a ticket / thread is created without an initial message.
      
        * Lock becomes more of a utility
          The lock is now disconnected from the ticket and is a separate utility.
          Separately, the ticket and task objects can have a reference to a lock
          object. Furthermore, when submitting some activities to tickets, the
          lock is verified to be owned by the respective agent, and the lock code
          must match a current lock code. The code is rotated on each acquire()
          call to guard against double submissions.
      
        * Collaborator is an ORM model
          The TicketUser class is broken up now so that the collaborator instance
          can exist apart from a ticket. Email message ids are now generated for
          collaborators without respect for a ticket so that collaborators can be
          properly supported on any thread.
      67d55198
  11. Feb 11, 2015
  12. Jan 13, 2015
    • Jared Hancock's avatar
      Fix very predictable random data on some platforms · 2a358417
      Jared Hancock authored
      Misc::randCode does not generate significantly random data for Windows
      platforms with a local database. This stems from the random seed using the
      milliseconds from the current time of day and the database connection time,
      in microseconds. Because Windows has especially poor sub-second time
      resolution via the microtime() function, the seed does not have many
      variations.
      
      This patch addresses the issue by using the included Crypto::random()
      function as a source of random data rather than the mt_rand() function, as
      it uses native cryptographic random data generators if possible to generate
      the data, and uses microtime() as a fallback if no other source of random
      data is available on the platform.
      2a358417
  13. Dec 08, 2014
    • Jared Hancock's avatar
      i18n: Add locale-based date time formats · 0fbc09ad
      Jared Hancock authored
      This patch adds support for automatic date and time formatting based on a
      selection of locale. The locale can default to the system or user specified
      language+locale, or can be elected separately. For instance, English
      speakers can pick between US, GB, and many other English speaking locales.
      
      This also removes the need of the %timezone table and uses the timezonedb
      built into PHP 5.3+. User's can now select from a much longer list of
      database and no longer need to deal with the DST checkbox.
      0fbc09ad
  14. Aug 13, 2014
  15. Aug 01, 2014
  16. Jul 11, 2014
  17. Jun 25, 2014
    • Thane de Loth's avatar
      Adopt translation work from Thane de Loth · 7042e6c8
      Thane de Loth authored
      Multilanguage Support via gettext
      
      - added gettext encapsulations to all texts i thought necessary
      - added fallback function for the case that the gettext extension isn't loaded
      - added browser language detection
      - added gettext to the list of optional extensions in setup
      - rewritten some of the texts to use sprintf instead of appending strings
      - added german translation file
      - removed mark_overdue-confirm from cannedresponses.inc.php
      
      extend multi language support and a fex fixes
      
      - Better detection of translation files
      - Added functionality to redirect language codes (see redirecting
      language codes)
      - Ticket Status can be translated
      - The Datepicker can be translated
      - Extended functionality of 'testlang.php' to show what language code is
      used to translate
      
      Forgotten to apply a patch from RC5 to RC6
      
      - Forgotten to change $var to $vars in line 380 of class.mailfetch.php
      - Removed unneeded comment
      
      Added php_gettext as primary translation engine
      
      - Added php_gettext support (thanks to Danilo Segan and Steven
      Armstrong)
      - php_gettext is now the primary translation engine
      - Extended language detection functionality
      
      Add error/misconfiguration checks and fix undefined variables
      7042e6c8
  18. Jun 18, 2014
  19. Jan 17, 2014
  20. Oct 09, 2013
    • Jared Hancock's avatar
      HTML ticket thread, inline images and draft support · 864d3539
      Jared Hancock authored
      Process inline attachments in thread entry and support inline images in
      piped emails
      
      Support inline images across the system, with draft support
      
      Migrate to a single attachment table
          That way we don't need a new table for everything we need to attach an
          inline image to (like a signature, for instance)
      
      Add richtext support for internal notes
      
      Implement images on site pages
      
      * Image paste in Redactor
      * Make non-local images optional
      * Placeholder for non-local images
      * Fix local image download hover
      * Don't re-attach inline images
      864d3539
  21. Sep 11, 2013
  22. Sep 06, 2013
  23. Sep 05, 2013
  24. Jul 21, 2013
  25. Feb 19, 2013
  26. Aug 23, 2012
  27. Jun 28, 2012
  28. May 13, 2012
  29. May 10, 2012
  30. Mar 21, 2012
  31. Mar 19, 2012
Loading