Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-filestorage
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-filestorage
Commits
ded1634e
Commit
ded1634e
authored
Oct 23, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue with bread_crum_path not taking effects
parent
50037e87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
intranet-filestorage-procs.tcl
tcl/intranet-filestorage-procs.tcl
+17
-2
No files found.
tcl/intranet-filestorage-procs.tcl
View file @
ded1634e
...
...
@@ -1583,7 +1583,15 @@ ad_proc -private im_filestorage_render_perms { perm } {
return
$result
}
ad_proc -public im_filestorage_base_component
{
user_id object_id object_name base_path folder_type
{
default_open
"c"
}
{
bread_crum_path
""
}
}
{
ad_proc -public im_filestorage_base_component
{
user_id
object_id
object_name
base_path
folder_type
{
default_open
"c"
}
{
bread_crum_path
""
}
}
{
Main funcion to generate the filestorage page
(
create folder, bread crum, ....
)
@param user_id: the user who is attempting to view the filestorage
@param object_id: from wich group is pending this user?
...
...
@@ -1592,7 +1600,7 @@ ad_proc -public im_filestorage_base_component { user_id object_id object_name ba
@param bread_crum_path: a relative path, starting from the base_path
""
= root directory,
"dir1"
= next directory,
"dir1/dir2"
= second next, etc.
}
{
ns_log Notice
"im_filestorage_base_component
uid=
$user
_id oid=
$object
_id object_name=
$object
_name base_path=
$base
_path folder_type=
$folder
_type bread_crum_path=
$bread
_crum_path
"
ns_log Notice
"im_filestorage_base_component
: uid=
$user
_id oid=
$object
_id object_name=
$object
_name base_path=
$base
_path folder_type=
$folder
_type default_open=
$default
_open bread_crum_path='
$bread
_crum_path'
"
set bgcolor
(
0
)
"roweven"
set bgcolor
(
1
)
"rowodd"
...
...
@@ -1611,7 +1619,14 @@ ad_proc -public im_filestorage_base_component { user_id object_id object_name ba
set return_url
[
im_url_with_query
]
if
{
""
==
$bread
_crum_path
}
{
# bread_crum_path is set here locally, so im_opt_val would just take
# the empty variable. So we have to unset bread_crum_path so that
# im_opt_val will check the URL vars etc.
unset bread_crum_path
set bread_crum_path
[
im_opt_val -limit_to nohtml bread_crum_path
]
# ns_log Notice
"im_filestorage_base_component: got bread-crum from im_opt_val: bread_crum_path=
$bread
_crum_path"
}
if
{[
im_security_alert_check_path -location
"intranet-filestorage.im_filestorage_base_component"
-value
$bread
_crum_path
]}
{
set bread_crum_path
""
...
...
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