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
6a4a530b
Commit
6a4a530b
authored
Jun 27, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- GanttEditor:
Fixing minor errors creating/deleting tasks
parent
3c5d3983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
intranet-rest-data-source-procs.tcl
tcl/intranet-rest-data-source-procs.tcl
+11
-11
No files found.
tcl/intranet-rest-data-source-procs.tcl
View file @
6a4a530b
...
...
@@ -73,8 +73,8 @@ ad_proc im_rest_project_task_tree_update {
-rest_oid
$project
_id
\
-hash_array
$var
_hash_list
# Update assign
ment
s
im_rest_project_task_tree_assign
ment
s -project_id
$project
_id -var_hash_list
$var
_hash_list
# Update assign
ee
s
im_rest_project_task_tree_assign
ee
s -project_id
$project
_id -var_hash_list
$var
_hash_list
}
...
...
@@ -149,27 +149,27 @@ ad_proc im_rest_project_task_tree_create {
-rest_otype_pretty
"Timesheet Task"
\
-hash_array_list
$var
_hash_list
]
# Update assign
ment
s
im_rest_project_task_tree_assign
ment
s -project_id
$project
_id -var_hash_list
$var
_hash_list
# Update assign
ee
s
im_rest_project_task_tree_assign
ee
s -project_id
$project
_id -var_hash_list
$var
_hash_list
}
ad_proc im_rest_project_task_tree_assign
ment
s
{
ad_proc im_rest_project_task_tree_assign
ee
s
{
-project_id:required
-var_hash_list:required
}
{
Update the resource assign
ment
s to the task
Update the resource assign
ee
s to the task
}
{
ns_log Notice
"im_rest_project_task_tree_assign
ment
s: project_id=
$project
_id, var_hash_list=
$var
_hash_list"
ns_log Notice
"im_rest_project_task_tree_assign
ee
s: project_id=
$project
_id, var_hash_list=
$var
_hash_list"
array set var_hash
$var
_hash_list
# Update task assign
ment
s
# Update task assign
ee
s
set assignees
$var
_hash
(
assignees
)
ns_log Notice
"im_rest_project_task_tree_assign
ment
s: assignees=
$assignees
"
ns_log Notice
"im_rest_project_task_tree_assign
ee
s: assignees=
$assignees
"
set assignee_list
[
lindex
$assignees
1
]
foreach assignee_object
$assignee
_list
{
set object_hash_list
[
lindex
$assignee
_object 1
]
ns_log Notice
"im_rest_project_task_tree_assign
ment
s: object_hash=
$object
_hash_list"
ns_log Notice
"im_rest_project_task_tree_assign
ee
s: object_hash=
$object
_hash_list"
array unset object_hash
array set object_hash
$object
_hash_list
set user_id
$object
_hash
(
user_id
)
...
...
@@ -178,7 +178,7 @@ ad_proc im_rest_project_task_tree_assignments {
# Add the dude to the project and update percentage
set rel_id
[
im_biz_object_add_role
$user
_id
$project
_id
[
im_biz_object_role_full_member
]]
db_dml update_assignation
"update im_biz_object_members set percentage = :percent where rel_id = :rel_id"
ns_log Notice
"im_rest_project_task_tree_assign
ment
s: rel_id=
$rel
_id"
ns_log Notice
"im_rest_project_task_tree_assign
ee
s: rel_id=
$rel
_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