Skip to content
Browse files

wrong variable name while creating the folder explorer which breaked …

…the file deletion

git-svn-id: https://web2project.svn.sourceforge.net/svnroot/web2project/trunk@1974 cef3e9b6-683d-0410-b475-c2bd3a4d0f1e
  • Loading branch information...
1 parent b3f38d4 commit 15db84db627060296be6be7d3c1ae7a48c60b520 caseydk committed Jul 4, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 modules/files/filefolder.class.php
View
8 modules/files/filefolder.class.php
@@ -419,16 +419,16 @@ function displayFiles($AppUI, $folder_id, $task_id, $project_id, $company_id) {
$s .= '<tr>
<td nowrap="8%">
- <form name="frm_remove_file_' . $file['file_id'] . '" action="?m=files" method="post" accept-charset="utf-8">
+ <form name="frm_remove_file_' . $latest_file['file_id'] . '" action="?m=files" method="post" accept-charset="utf-8">
<input type="hidden" name="dosql" value="do_file_aed" />
<input type="hidden" name="del" value="1" />
- <input type="hidden" name="file_id" value="' . $file['file_id'] . '" />
+ <input type="hidden" name="file_id" value="' . $latest_file['file_id'] . '" />
<input type="hidden" name="redirect" value="' . $current_uri . '" />
</form>
- <form name="frm_duplicate_file_' . $file['file_id'] . '" action="?m=files" method="post" accept-charset="utf-8">
+ <form name="frm_duplicate_file_' . $latest_file['file_id'] . '" action="?m=files" method="post" accept-charset="utf-8">
<input type="hidden" name="dosql" value="do_file_aed" />
<input type="hidden" name="duplicate" value="1" />
- <input type="hidden" name="file_id" value="' . $file['file_id'] . '" />
+ <input type="hidden" name="file_id" value="' . $latest_file['file_id'] . '" />
<input type="hidden" name="redirect" value="' . $current_uri . '" />
</form>
';

0 comments on commit 15db84d

Please sign in to comment.
Something went wrong with that request. Please try again.