Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
file-storage
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
file-storage
Commits
41be5606
Commit
41be5606
authored
Mar 27, 2019
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Changes to file-storage for ]po[-Sync operations
parent
07b2e585
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
file-storage-procs.tcl
tcl/file-storage-procs.tcl
+14
-4
No files found.
tcl/file-storage-procs.tcl
View file @
41be5606
...
...
@@ -1064,7 +1064,11 @@ ad_proc fs::add_version {
content::item::set_live_revision -revision_id
$revision
_id
db_exec_plsql update_last_modified
""
# Fraber 2019-03-27: Why changed?
# db_exec_plsql update_last_modified
""
db_string update1
"select acs_object__update_last_modified(:parent_id, :creation_user, :creation_ip)"
db_string update2
"select acs_object__update_last_modified(:item_id, :creation_user, :creation_ip)"
if
{[
string
is false
$suppress
_notify_p
]}
{
fs::do_notifications -folder_id
$parent
_id -filename
$title
-item_id
$revision
_id -action
"new_version"
-package_id
$package
_id
...
...
@@ -1094,9 +1098,7 @@ ad_proc fs::delete_file {
}
{
Deletes a file and all its revisions
}
{
set version_name
[
get_object_name -object_id
$item
_id
]
if
{
$parent
_id eq
""
}
{
set parent_id
[
fs::get_parent -item_id
$item
_id
]
}
...
...
@@ -1116,8 +1118,16 @@ ad_proc fs::delete_file {
}
}
# 2019-01-22: Delete permissions and file versions
db_dml del_perms
"delete from acs_permissions where object_id = :item_id"
db_dml del_versions
"delete from im_file_versions where version_id in (
select cr.revision_id
from cr_revisions cr,
cr_items ci
where ci.item_id = :item_id and
cr.item_id = ci.item_id
)"
db_dml del_file
"delete from im_files where file_id = :item_id"
db_exec_plsql delete_file
""
fs::do_notifications -folder_id
$parent
_id -filename
$version
_name -item_id
$item
_id -action
"delete_file"
...
...
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