> > Bug (closed)

Cannot delete efforts

Summary

closed
Feb 23, 2007
100%
Apr 15, 2012
Feb 23, 2007 / burger
Apr 15, 2012 / pixtur
 

Attached files

No files uploaded
 
I tried to delete two efforts but it doesn't work.

It used the effortsDelete()function without errors and it uses the delete()function in db_item.inc.php in the right way.
But it does not set the state to -1 => the efforts do not get deleted.

Maybe someone can try if he/she has the same problem?

Issue report

Minor
Always
Firefox 2.0.1, (WAMPP and XUbuntu)
0.0796
Create a effort and try to delete it.

Check the damian2's post

 

5 Comments

burger:Oh sorry ...

11 years ago (2. update 11 years ago)

I saw that the state is set to -1 but it is still shown in the effort list.

The problem is that alive_only is set to false.

$this->query_options['alive_only'] = false;

Is this on purpose? Can I change this to true?

pixtur:Obviously it should be true,

11 years ago

Can you tell me, where you found this line of code?

burger:It is to find in ...

11 years ago

... the list_efforts.inc.php in the print_automatic()function.

damian2:i also got that error

11 years ago (2. update 11 years ago)

the item.state is updated to -1 but in projViewEfforts is again visible.

i make some attempts:

from class_task.inc.php

 $project        = NULL;
        $show_folders   = true;
        $order_by       = "is_folder DESC, parent_task, prio ASC,project,name";
        $status_min     = STATUS_NEW;
        $status_max     = STATUS_BLOCKED;
        $visible_only   = NULL;       # use project rights settings
        $alive_only     = true;       # ignore deleted
        $parent_task    = NULL;       #
        $sort_hierarchical= false;
        $use_collapsed  = false;      # by default ignore collapsed folders
        $issues_only    = false;
        $folders_only   = false;
        $level          = 0;         # hierarchical depth in trees
        $assigned_to_person=0;      # skip by default
        $search         = NULL;
        $name           = NULL;
        $is_milestone   = 0;
        $for_milestone  = NULL;
        $resolved_version = NULL;
        $is_released_min= NULL;
        $is_released_max= NULL;
		$id             = NULL;
		$modified_by    = NULL;
		$not_modified_by    = NULL;
		$resolve_reason_min= NULL;
		$category       = NULL;
		$category_in    = NULL;
		$label          = NULL;
trigger_error($str_is_alive,E_USER_WARNING);

and in the errors.log:

Error 20070227160134      Variables in getAll():
Error 20070227160134                          args = Array
Error 20070227160134                          auth = OBJECT
Error 20070227160134                        prefix = NULL
Error 20070227160134                       project = NULL
Error 20070227160134                  show_folders = 1
Error 20070227160134                      order_by = is_folder DESC, parent_task, prio ASC,project,name
Error 20070227160134                    status_min = 2
Error 20070227160134                    status_max = 4
Error 20070227160134                  visible_only = NULL
Error 20070227160134                    alive_only = 1
Error 20070227160134                   parent_task = NULL
Error 20070227160134             sort_hierarchical = NULL
Error 20070227160134                 use_collapsed = NULL
Error 20070227160134                   issues_only = NULL
Error 20070227160134                  folders_only = NULL
Error 20070227160134                         level = NULL
Error 20070227160134            assigned_to_person = NULL
Error 20070227160134                        search = NULL
Error 20070227160134                          name = NULL
Error 20070227160134                  is_milestone = NULL
Error 20070227160134                 for_milestone = NULL
Error 20070227160134              resolved_version = NULL
Error 20070227160134               is_released_min = NULL
Error 20070227160134               is_released_max = NULL
Error 20070227160134                            id = NULL
Error 20070227160134                   modified_by = NULL
Error 20070227160134               not_modified_by = NULL
Error 20070227160134            resolve_reason_min = NULL
Error 20070227160134                      category = NULL
Error 20070227160134                   category_in = NULL
Error 20070227160134                         label = NULL

althought there is defined, in example, is_milestone = 0, whe take is_milestone NULL some lines after.

the same is for class_effort.inc.php

cheers,

pixtur:fixed.

11 years ago (2. update 11 years ago)

I don't get the problem with the milestones, though....