Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-helpdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-helpdesk
Commits
058ca93e
Commit
058ca93e
authored
May 03, 2023
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Haigh issue with non-'sequence' ticket_nr method
parent
6313a6c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
intranet-helpdesk-procs.tcl
tcl/intranet-helpdesk-procs.tcl
+3
-3
No files found.
tcl/intranet-helpdesk-procs.tcl
View file @
058ca93e
...
...
@@ -402,11 +402,11 @@ namespace eval im_ticket {
select max(project_nr::integer)
from im_projects
where project_type_id =
[
im_project_type_ticket
]
and project_nr ~ '^
\[
0-9
\]
+
$
'
and project_nr ~ '^
\[
0-9
\]
+
\
$
'
"
-default 0
]
# Make sure the counter is not behind the current value
while
{[
db_string lv
"select
im_ticket_seq.last_value
"
]
<
$last
_ticket_nr
}
{
while
{[
db_string lv
"select
last_value from im_ticket_seq
"
]
<
$last
_ticket_nr
}
{
set ttt
[
db_string update
"select nextval('im_ticket_seq')"
]
}
return
[
expr
{
$last
_ticket_nr + 1
}]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment