From ca26f6f6a745314a54117f6411c8767b485b4553 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 6 Aug 2014 15:54:42 -0500 Subject: [PATCH] Fixup documentation for custom ticket numbers --- include/class.sequence.php | 3 +++ .../i18n/en_US/help/tips/settings.ticket.yaml | 16 +++++++++------- scp/css/scp.css | 3 +++ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/include/class.sequence.php b/include/class.sequence.php index 256971873..62b9c3956 100644 --- a/include/class.sequence.php +++ b/include/class.sequence.php @@ -201,6 +201,9 @@ class RandomSequence extends Sequence { function __construct() {} function __next($digits=6) { + if ($digits < 6) + $digits = 6; + return Misc::randNumber($digits); } diff --git a/include/i18n/en_US/help/tips/settings.ticket.yaml b/include/i18n/en_US/help/tips/settings.ticket.yaml index e694af2b3..d048bad05 100644 --- a/include/i18n/en_US/help/tips/settings.ticket.yaml +++ b/include/i18n/en_US/help/tips/settings.ticket.yaml @@ -16,19 +16,21 @@ number_format: title: Ticket Number Format content: > - This setting is used to create numbers for new tickets. Use hash - signs (`#`) where numbers are to be replaced. For example, for - six-digit numbers, use <code>######</code>. Any other text in the - number format will be preserved. Number formats can be overridden by - each help topic. + This setting is used to generate ticket numbers. Use hash signs + (`#`) where digits are to be placed. Any other text in the number + format will be preserved. <span class="doc-desc-title">Help + Topics</span> can define custom number formats. + <br/><br/> + For example, for six-digit numbers, use <code>######</code>. sequence_id: title: Ticket Number Sequence - content: + content: > Choose a sequence from which to derive new ticket numbers. The system has a incrementing sequence and a random sequence by default. You may create as many sequences as you wish. Use various sequences - in the number format configuration for help topics. + in the <span class="doc-desc-title">Ticket Number + Format</span> configuration for help topics. default_sla: title: Default SLA diff --git a/scp/css/scp.css b/scp/css/scp.css index 95d63bbf0..6694742f4 100644 --- a/scp/css/scp.css +++ b/scp/css/scp.css @@ -1678,6 +1678,9 @@ div.selected-signature .inner { border-bottom-right-radius: inherit; width: 35px; } +.row-item .delete:empty { + visibility: hidden; +} .row-item .button-group { font-size: 105%; -- GitLab