Budget total is now reflected from the DB column and changing budget items
on edit now changes the total budget while editing.
Also some cosmetic changes for consistency.
The task's dependency fields are now shown only when appropriate, to avoid
confusion. This is an extension of a previous fix, that only handled the
'Dynamic task' case.
This fix removes the tests for first_hour:00 and last_hour:00 from the
'prev_working_day' and 'next_working_day' methods. I see no point in them
and if needed should be done on the calling code.
There's also a small change on 'addDuration' to correct the handling of the
last day on hour durations. The previous code didn't work as there's no
$full_working_day variable.
I've also reworked the 'calcFinish' method to use 'addDuration' instead
of reimplementing the same functionality all over again.
Fix for the pushDependencies method, which would not calculate the new
task's end date properly in case of durations expressed in days (would
multiply by 3, for which I can't understand the reasoning).
The new end date is only stored if posterior to the previous end date.
Fix to allow a dependant's task start date to slip upon entry of a task log
that postpones the end date of the original task. The old code used the end
date stored in the DB instead of the newly computed one.
Change the way the 'add user' button is shown in the 'User Management'
page. This was done for consistency (and for working with a theme I've done
to take out the 'flat view' / 'tabbed view' buttons).
Fix for:

If the user adding a task log didn't have enough rights to change the
task's dates no end date field was shown on the task log tab. But also no
hidden field containing the task's new end date was present so the task's
end date was set at a zero timestamp (1970).
Patch to change the permission behaviour of task logs. Previously an user
had to have edit rights to tasks to be able to add task logs to any task,
even if it was assigned to him. This does not make sense; the user doing
the work should update the completion information but should not be allowed
to change anything else.
Now a task log can be created if the current user is :

- An user with view permission on the Admin module (administrator)
- The task owner or the project owner
- One of the task's assignees

But if the task's 'task_allow_other_user_tasklogs' column is set then any
user can add task logs to that task.

The edit and delete rights to the task logs work as before.

Also included are some cosmetic changes.
This patch restricts the presentation of the financial information on tasks
and projects to the users:

Tasks - task owner, user with view permission on module 'Admin', user able
        to edit the associated project

Projects - user able to edit the project, user with view permission on
           module 'Admin'
Fixed the event filter handling code, so that the user default config is
honored (the '' default to the w2PgetParam call would cause it to return
an empty string, instead of returning the user default).
Also added an event filter field to the 'Day View', to match the other
views and avoid a filter that was changeable only on another view.
Fix to only display the 'Tasks assigned to others' stuff if there's
actually tasks to list.
Fix to control the visibility of the edit, checkin/out and delete icons on
the files list, depending on the item permissions and owner.

Now a file can be edited by its owner or by anyone who is given edit
permissions on the file, while a file can be deleted by its owner or by
anyone with delete permissions on it.
These permissions do not depend on the project, task or whatever.

Also included is a fix for the 'Selection' column.
Patch to allow editing and deletion of files by the file owner or anyone
with edit/delete permissions.
Fix to show the folder delete icon in 'Folder Explorer' if there's no files
inside the folder. In this (crappy) way a non-empty folder can only be
deleted by someone with permission to delete the files inside.