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
687b9bd2
Commit
687b9bd2
authored
May 19, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed error in milestone_p char(1) data-type
parent
d66b8e84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
intranet-rest-data-source-procs.tcl
tcl/intranet-rest-data-source-procs.tcl
+6
-3
No files found.
tcl/intranet-rest-data-source-procs.tcl
View file @
687b9bd2
...
...
@@ -28,6 +28,9 @@ ad_proc im_rest_project_task_tree_action {
set current_user_id
[
ad_conn user_id
]
array set var_hash
$var
_hash_list
# Handle issues with
"true"
or
"false"
in milestone_p breaking the DB char
(
1
)
data-type
if
{[
info
exists var_hash
(
milestone_p
)]}
{
set var_hash
(
milestone_p
)
[
string
range
$var
_hash
(
milestone_p
)
0 0
]
}
# Ignore the root of the tree that might be send by the Sencha side
set id
""
if
{[
info
exists var_hash
(
id
)]}
{
set id
$var
_hash
(
id
)
}
...
...
@@ -40,9 +43,9 @@ ad_proc im_rest_project_task_tree_action {
if
{[
info
exists var_hash
(
id
)]
&&
""
!=
$var
_hash
(
id
)}
{
set project_id
$var
_hash
(
id
)
}
switch
$action
{
update
{
im_rest_project_task_tree_update -pass
$pass
-project_id
$project
_id -var_hash_list
$var
_hash_list
}
create
{
im_rest_project_task_tree_create -pass
$pass
-project_id
$project
_id -var_hash_list
$var
_hash_list
}
delete
{
im_rest_project_task_tree_delete -pass
$pass
-project_id
$project
_id -var_hash_list
$var
_hash_list
}
update
{
im_rest_project_task_tree_update -pass
$pass
-project_id
$project
_id -var_hash_list
[
array
get var_hash
]
}
create
{
im_rest_project_task_tree_create -pass
$pass
-project_id
$project
_id -var_hash_list
[
array
get var_hash
]
}
delete
{
im_rest_project_task_tree_delete -pass
$pass
-project_id
$project
_id -var_hash_list
[
array
get var_hash
]
}
default
{
doc_return 200
"text/plain"
"{success:false, message: 'tree_action: found invalid action=
$action
'}"
}
...
...
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