Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
0d08231c
Commit
0d08231c
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge pull request #5305 from atm-maxime/fix_ecm_removefile
FIX #5108
parents
454d054f
a5472b58
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/ajax/ajaxdirpreview.php
+4
-1
4 additions, 1 deletion
htdocs/core/ajax/ajaxdirpreview.php
htdocs/ecm/index.php
+1
-2
1 addition, 2 deletions
htdocs/ecm/index.php
with
5 additions
and
3 deletions
htdocs/core/ajax/ajaxdirpreview.php
+
4
−
1
View file @
0d08231c
...
...
@@ -240,7 +240,10 @@ if ($section)
require_once
DOL_DOCUMENT_ROOT
.
'/core/class/html.form.class.php'
;
$useglobalvars
=
1
;
$form
=
new
Form
(
$db
);
$formquestion
=
array
(
'urlfile'
=>
array
(
'type'
=>
'hidden'
,
'value'
=>
$urlfile
,
'name'
=>
'urlfile'
));
$formquestion
=
array
(
'urlfile'
=>
array
(
'type'
=>
'hidden'
,
'value'
=>
$urlfile
,
'name'
=>
'urlfile'
),
'section'
=>
array
(
'type'
=>
'hidden'
,
'value'
=>
$section
,
'name'
=>
'section'
)
);
print
$form
->
formconfirm
(
$url
,
$langs
->
trans
(
"DeleteFile"
),
$langs
->
trans
(
"ConfirmDeleteFile"
),
'confirm_deletefile'
,
$formquestion
,
"no"
,(
$useajax
?
'deletefile'
:
0
));
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/ecm/index.php
+
1
−
2
View file @
0d08231c
...
...
@@ -175,10 +175,9 @@ if ($action == 'confirm_deletefile')
dol_print_error
(
$db
,
$ecmdir
->
error
);
exit
;
}
$relativepath
=
$ecmdir
->
getRelativePath
();
}
else
$relativepath
=
''
;
$upload_dir
=
$conf
->
ecm
->
dir_output
.
(
$relativepath
?
'/'
.
$relativepath
:
''
)
;
$upload_dir
=
$conf
->
ecm
->
dir_output
;
$file
=
$upload_dir
.
"/"
.
GETPOST
(
'urlfile'
);
// Do not use urldecode here ($_GET and $_POST are already decoded by PHP).
$ret
=
dol_delete_file
(
$file
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment