Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
09099c54
Commit
09099c54
authored
10 years ago
by
Peter Rotich
Browse files
Options
Downloads
Patches
Plain Diff
Rename ticket number sequence
parent
297a2207
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/class.config.php
+9
-7
9 additions, 7 deletions
include/class.config.php
include/i18n/en_US/config.yaml
+4
-2
4 additions, 2 deletions
include/i18n/en_US/config.yaml
with
13 additions
and
9 deletions
include/class.config.php
+
9
−
7
View file @
09099c54
...
...
@@ -655,19 +655,21 @@ class OsticketConfig extends Config {
return
true
;
//No longer an option...hint: big plans for headers coming!!
}
function
getDefaultSequence
()
{
if
(
$this
->
get
(
'sequence_id'
))
$sequence
=
Sequence
::
lookup
(
$this
->
get
(
'sequence_id'
));
function
getDefault
Ticket
Sequence
()
{
if
(
$this
->
get
(
'
ticket_
sequence_id'
))
$sequence
=
Sequence
::
lookup
(
$this
->
get
(
'
ticket_
sequence_id'
));
if
(
!
$sequence
)
$sequence
=
new
RandomSequence
();
return
$sequence
;
}
function
getDefaultNumberFormat
()
{
return
$this
->
get
(
'number_format'
);
function
getDefaultTicketNumberFormat
()
{
return
$this
->
get
(
'ticket_number_format'
);
}
function
getNewTicketNumber
()
{
$s
=
$this
->
getDefaultSequence
();
return
$s
->
next
(
$this
->
getDefaultNumberFormat
(),
$s
=
$this
->
getDefault
Ticket
Sequence
();
return
$s
->
next
(
$this
->
getDefault
Ticket
NumberFormat
(),
array
(
'Ticket'
,
'isTicketNumberUnique'
));
}
...
...
This diff is collapsed.
Click to expand it.
include/i18n/en_US/config.yaml
+
4
−
2
View file @
09099c54
...
...
@@ -74,8 +74,10 @@ core:
hide_staff_name
:
0
overlimit_notice_active
:
0
email_attachments
:
1
number_format
:
'
######'
sequence_id
:
0
ticket_number_format
:
'
######'
ticket_sequence_id
:
0
task_number_format
:
'
#'
task_sequence_id
:
2
log_level
:
2
log_graceperiod
:
12
client_registration
:
'
public'
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment