google-code-export / cpassman

Automatically exported from code.google.com/p/cpassman
0 stars 0 forks source link

Dont delete folders #292

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Go to Folder management
2.Click on Delete Folder
3.

What is the expected output? What do you see instead?
The folder should disappear but does nothing  

What version of the product are you using?
2.1.17

On what operating system? With what Browser (IEx, FFx, ...)
Ubuntu  10.04.1 LTS 
IEx 9

Please provide any additional information below.
When i try to delete a folder, does nothing. The log/apache show:
 PHP Notice:  Trying to get property of non-object in /var/www/teampass/sources/folders.queries.php on line 140, referer: https://16.2.9.12/teampass/index.php?page=manage_folders

The line 140 of /var/www/teampass/sources/folders.queries.php shows:

 if ($folder->parent_id > 0 && $folder->title != $_SESSION['user_id'] ) {
    // Get through each subfolder
   $folders = $tree->getDescendants($_POST['id'], true);
.....

$folder is not initializate. where it must do it?

Original issue reported on code.google.com by alberto....@gmail.com on 24 Jun 2013 at 1:14

GoogleCodeExporter commented 9 years ago
toc toc toc, anyone out there? ;-)

Original comment by alberto....@gmail.com on 1 Jul 2013 at 8:45