Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
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-rest
Commits
95426539
Commit
95426539
authored
Jun 22, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Sencha TT:
Fixed problem with im_ticket_seq
parent
d6c7c58a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
intranet-rest-create-procs.tcl
tcl/intranet-rest-create-procs.tcl
+6
-6
No files found.
tcl/intranet-rest-create-procs.tcl
View file @
95426539
...
...
@@ -146,9 +146,9 @@ ad_proc -private im_rest_post_object_type_im_ticket {
}
# Create optional variables if they haven't been specified in the XML request
if
{
!
[
info
exists
ticke
t_nr
]}
{
set
ticke
t_nr
[
db_nextval
"im_ticket_seq"
]
set hash_array
(
ticket_nr
)
$ticke
t
_nr
if
{
!
[
info
exists
projec
t_nr
]}
{
set
projec
t_nr
[
db_nextval
"im_ticket_seq"
]
set hash_array
(
project_nr
)
$projec
t
_nr
}
if
{
!
[
info
exists ticket_customer_contact_id
]}
{
set ticket_customer_contact_id
""
...
...
@@ -185,10 +185,10 @@ ad_proc -private im_rest_post_object_type_im_ticket {
where t.ticket_id = p.project_id and
$parent
_sql and
(upper(trim(p.project_name)) = upper(trim(:project_name)) OR
upper(trim(p.project_nr)) = upper(trim(:
ticke
t_nr)))
upper(trim(p.project_nr)) = upper(trim(:
projec
t_nr)))
"
if
{[
db_string duplicates
$dup
_sql
]}
{
return
[
im_rest_error -format
$format
-http_status 406 -message
"Duplicate
$rest
_otype_pretty: Your ticket_name or
ticke
t_nr already exists."
]
return
[
im_rest_error -format
$format
-http_status 406 -message
"Duplicate
$rest
_otype_pretty: Your ticket_name or
projec
t_nr already exists."
]
}
# Check for valid parent_id
...
...
@@ -203,7 +203,7 @@ ad_proc -private im_rest_post_object_type_im_ticket {
set rest_oid
[
im_ticket::new
\
-ticket_sla_id
$parent
_id
\
-ticket_name
$project
_name
\
-ticket_nr
$
ticke
t
_nr
\
-ticket_nr
$
projec
t
_nr
\
-ticket_customer_contact_id
$ticket
_customer_contact_id
\
-ticket_type_id
$ticket
_type_id
\
-ticket_status_id
$ticket
_status_id
\
...
...
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