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
eb9ffffd
Commit
eb9ffffd
authored
Aug 26, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed the URL from the HTML view of objects to the JSON view
- Fixed the system URL, which was wrong
parent
b177cd9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
intranet-rest-get-procs.tcl
tcl/intranet-rest-get-procs.tcl
+2
-2
No files found.
tcl/intranet-rest-get-procs.tcl
View file @
eb9ffffd
...
...
@@ -36,7 +36,7 @@ ad_proc -private im_rest_get_object_type {
if
{[
info
exists query_hash
(
deref_p
)]}
{
set deref_p
$query
_hash
(
deref_p
)
}
im_security_alert_check_integer -location
"im_rest_get_object: deref_p"
-value
$deref
_p
set base_url
"
[
im_rest_system_url
]
/intranet-rest"
set base_url
"/intranet-rest"
set chars_to_be_escaped_list
[
list
\
"
\"
"
"
\\\"
"
\\
\\\\
\b
\\
b
\f
\\
f
\n
\\
n
\r
\\
r
\t
\\
t
\
...
...
@@ -265,7 +265,7 @@ ad_proc -private im_rest_get_object_type {
set url
"
$base
_url/
$rest
_otype/
$rest
_oid"
append result
"<tr>
<td>
$rest
_oid</td>
<td><a href=
\"
$url
?format=
html
\"
>
$object
_name</a>
<td><a href=
\"
$url
?format=
json
\"
>
$object
_name</a>
</tr>
\n
"
}
}
...
...
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