Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#2680 Unable to delete a research assistant folder

v4.2.2
closed-fixed
Greg Roach
None
5
2009-09-30
2009-09-29
Marco Moreno
No

I'm unable to delete an empty folder. I believe this patch may do the trick:

--- modules/research_assistant/forms/ra_EditFolder.php.orig 2009-09-29 00:03:13.000000000 -0400
+++ modules/research_assistant/forms/ra_EditFolder.php 2009-09-28 23:19:01.000000000 -0400
@@ -122,9 +122,9 @@
$errormsg = "";
//-- don't show a warning if we are adding a folder
if ($_REQUEST['action']!='addfolder') {
- if($hastasks)
+ if(!$hastasks)
{
- if($hasfolders){
+ if(!$hasfolders){
$out.='<input type="button" value="'.$pgv_lang["delete"].'" onclick="window.location=\'module.php?mod=research_assistant&amp;action=deletefolder&amp;folderid='.$fr_id.'\';" />';
}
else {

Discussion

  • Greg Roach
    Greg Roach
    2009-09-30

    This has been added to SVN. Thanks for contributing to the project.

    Next time, it will be better to attach the patch file. If you include it, then line-wrapping causes problems.

     
  • Greg Roach
    Greg Roach
    2009-09-30

    • assigned_to: nobody --> fisharebest
    • status: open --> closed-fixed