Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-core
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-core
Commits
918b16aa
Commit
918b16aa
authored
Mar 27, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added a more explict error message when displaying a user
that doesn't exist
parent
8a2065fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
view.tcl
www/users/view.tcl
+19
-2
No files found.
www/users/view.tcl
View file @
918b16aa
...
@@ -94,9 +94,26 @@ where
...
@@ -94,9 +94,26 @@ where
u.user_id = :user_id_from_search
u.user_id = :user_id_from_search
"
]
"
]
if
{
$result
!=
1
}
{
if
{
$result
>
1
}
{
ad_return_complaint
"
[
_ intranet-core.Bad_User
]
"
"
ad_return_complaint
"
[
_ intranet-core.Bad_User
]
"
"
<li>
[
_ intranet-core.lt_We_couldnt_find_user_
]
"
<li>There is more then one user with the ID
$user
_id_from_search"
return
}
if
{
$result
== 0
}
{
set party_id
[
db_string party
"select party_id from parties where party_id=:user_id_from_search"
-default 0
]
set person_id
[
db_string person
"select person_id from persons where person_id=:user_id_from_search"
-default 0
]
set user_id
[
db_string user
"select user_id from users where user_id=:user_id_from_search"
-default 0
]
set object_type
[
db_string object_type
"select object_type from acs_objects where object_id=:user_id_from_search"
-default
"unknown"
]
ad_return_complaint
"
[
_ intranet-core.Bad_User
]
"
"
<li>
[
_ intranet-core.lt_We_couldnt_find_user_
]
<li>ObjectType:
$object
_type
<li>UserId:
$user
_id
<li>PersonId:
$person
_id
<li>PartyId:
$party
_id
"
return
return
}
}
...
...
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