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
7b4d211f
Commit
7b4d211f
authored
Sep 09, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- REST Interface:
Fixed issue with columns
parent
c0cd7867
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
intranet-rest-procs.tcl
tcl/intranet-rest-procs.tcl
+3
-4
No files found.
tcl/intranet-rest-procs.tcl
View file @
7b4d211f
...
...
@@ -795,6 +795,7 @@ ad_proc -private im_rest_get_object_type {
array set query_hash
$query
_hash_pairs
set rest_otype_id
[
util_memoize
[
list
db_string otype_id
"select object_type_id from im_rest_object_types where object_type = '
$rest
_otype'"
-default 0
]]
set rest_columns
[
im_rest_get_rest_columns
$query
_hash_pairs
]
foreach col
$rest
_columns
{
set rest_columns_hash
(
$col
)
1
}
# -------------------------------------------------------
# Get some more information about the current object type
...
...
@@ -978,10 +979,8 @@ ad_proc -private im_rest_get_object_type {
set dereferenced_result
""
foreach v
$valid
_vars
{
if
{{}
!=
$rest
_columns
}
{
# Skip the column unless it is explicitely mentioned in the rest_columns list
if
{
!
[
info
exists rest_columns
(
$v
)]}
{
continue
}
}
# Skip the column unless it is explicitely mentioned in the rest_columns list
if
{{}
!=
$rest
_columns
}
{
if
{
!
[
info
exists rest_columns_hash
(
$v
)]}
{
continue
}
}
eval
"set a
$
$v
"
regsub -all
{
\n
}
$a
{
\n
}
a
...
...
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