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
a2e08900
Commit
a2e08900
authored
Nov 30, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue with creating projects or tasks without type of status
parent
ca368cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
intranet-rest-create-procs.tcl
tcl/intranet-rest-create-procs.tcl
+13
-4
No files found.
tcl/intranet-rest-create-procs.tcl
View file @
a2e08900
...
...
@@ -293,8 +293,8 @@ ad_proc -private im_rest_post_object_type_im_timesheet_task {
# Store the values into local variables
set project_nr
""
set project_status_id
[
im_project_status_open
]
set project_type_id
[
im_project_type_task
]
set project_status_id
""
set project_type_id
""
set planned_units
""
set billable_units
""
set percent_completed 0
...
...
@@ -305,14 +305,23 @@ ad_proc -private im_rest_post_object_type_im_timesheet_task {
set sort_order
""
set gantt_project_id
""
set note
""
# Extract a key-value list of variables from JSON POST request
if
{
""
!=
$hash
_array_list
}
{
array set hash_array
$hash
_array_list
}
else
{
array set hash_array
[
im_rest_parse_json_content -rest_otype
$rest
_otype -format
$format
-content
$content
]
}
if
{
""
==
$project
_status_id
}
{
set project_status_id
[
im_project_status_open
]
set hash_array
(
project_status_id
)
$project
_status_id
}
if
{
""
==
$project
_type_id
}
{
set project_type_id
[
im_project_type_task
]
set hash_array
(
project_type_id
)
$project
_type_id
}
# write hash values as local variables
foreach key
[
array
names hash_array
]
{
set value
$hash
_array
(
$key
)
...
...
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