diff --git a/lib/WebGUI/Wobject/DownloadManager.pm b/lib/WebGUI/Wobject/DownloadManager.pm index a9d830bdb..32125afd7 100644 --- a/lib/WebGUI/Wobject/DownloadManager.pm +++ b/lib/WebGUI/Wobject/DownloadManager.pm @@ -141,7 +141,7 @@ sub www_deleteDownloadConfirm { $file->deleteNode; WebGUI::SQL->write("delete from DownloadManager_file where downloadId=$session{form}{did}"); _reorderDownloads($session{form}{wid}); - return $_[0]->www_edit(); + return ""; } else { return WebGUI::Privilege::insufficient(); } @@ -175,8 +175,7 @@ sub www_download { #------------------------------------------------------------------- sub www_edit { - my ($output, $f, %hash, @array, $sth, @download, $paginateAfter, $proceed); - tie %hash, 'Tie::IxHash'; + my ($output, $f, $paginateAfter, $proceed); if (WebGUI::Privilege::canEditPage()) { if ($_[0]->get("wobjectId") eq "new") { $proceed = 1; @@ -189,22 +188,6 @@ sub www_edit { $f->yesNo("displayThumbnails",WebGUI::International::get(21,$namespace),$_[0]->get("displayThumbnails")); $f->yesNo("proceed",WebGUI::International::get(22,$namespace),$proceed); $output .= $_[0]->SUPER::www_edit($f->printRowsOnly); - unless ($_[0]->get("wobjectId") eq "new") { - $output .= '
'.WebGUI::International::get(11,$namespace).'
'; - $sth = WebGUI::SQL->read("select downloadId,fileTitle from DownloadManager_file where wobjectId='$session{form}{wid}' order by sequenceNumber"); - $output .='
| ' - .deleteIcon('func=deleteDownload&wid='.$session{form}{wid}.'&did='.$download[0]) - .editIcon('func=editDownload&wid='.$session{form}{wid}.'&did='.$download[0]) - .moveUpIcon('func=moveDownloadUp&wid='.$session{form}{wid}.'&did='.$download[0]) - .moveDownIcon('func=moveDownloadDown&wid='.$session{form}{wid}.'&did='.$download[0]) - .' | '.$download[1].' |
'.WebGUI::International::get(11,$namespace).'
'; + } $searchForm = WebGUI::HTMLForm->new(1); $searchForm->text("keyword",'',$session{form}{keyword}); $searchForm->submit(WebGUI::International::get(170)); @@ -395,6 +382,13 @@ sub www_view { $file = WebGUI::Attachment->new($download{downloadFile}, $_[0]->get("wobjectId"), $download{downloadId}); $row[$i] = '