Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - dbastreghi

Pages: [1]
1
Feng Office 3 / Bug on TaskController.class.php grouping by Tags
« on: April 18, 2018, 12:47:50 PM »
First: I have tried to post it on Mantis. But there is a problem with captcha. So I cant create an account.

Second: Sorry about my english. It's not very good. But I will try to make it clear.

About the issue:

On tasks list, after set group by tags, I got this message:

Code: [Select]
Fatal error: Call to a member function getId() on null in /.../application/controllers/TaskController.class.php on line 1968

To solve it, I edited TaskController.class.php:

Line 1968:
Code: [Select]

            if (count($otf)){ # Added this line
            if ($otf->getId() == $member_type_id){
                $acontext = active_context();

                $ot_customer = ObjectTypes::findByName('customer');
                $ot_customer_id = $ot_customer->getId();

                $ot_project = ObjectTypes::findByName('project');
                $ot_project_id = $ot_project->getId();

                foreach ($acontext as $scontext){
                    if ($scontext instanceof Member) {
                        $scontext_ot = $scontext->getObjectTypeId();
                        if ($scontext_ot == $ot_project_id) {
                            $ot_project_folder = ObjectTypes::findByName('project_folder');
                            $member_type_id = $ot_project_folder->getId();
                        }
                        if ($scontext_ot == $ot_customer_id) {
                            $ot_customer_folder = ObjectTypes::findByName('customer_folder');
                            $member_type_id = $ot_customer_folder->getId();
                        }
                    }
}

}
            }  # Added this line

So, group tasks by tags came back to life.

2
Feng Office 3 / Re: Allow empty Due date
« on: January 17, 2018, 04:31:33 PM »
SOLVED!!!!

Execute on MySQL as root:

set global sql_mode=ERROR_FOR_DIVISION_BY_ZERO;

3
Português / Re: PROBLEMAS COM PERMISSÕES.
« on: January 17, 2018, 04:27:31 PM »
Você já tentou editar a área de trabalho e vincular o usuário à área?

Na lista de áreas de trabalho, clique no ícone lápis.
Depois vá na aba permissões.
Verifique se o nome do usuário aparece ali. Se não, tente adicioná-lo.

4
Feng Office 3 / [SOLVED] Allow empty Due date
« on: January 17, 2018, 04:17:18 PM »
Hi,

Im using Feng Office 3.5.1.5

In the previous version, I was able to save a task with no due date.

But now, it give me the message "Incorrect datetime value: '0000-00-00 00:00:00'"

I need to create tasks with no due date. How can I fix it?

Thanks
Daniel

5
I'm facing the same problem. Lupo, please, could you give me more information?

Thanks!
-----

I found a solution. Use phpmyadmin to execute the SQL bellow (as root):

set global innodb_large_prefix=on;
set global innodb_file_format=barracuda;
set global innodb_file_per_table=true;
set global sql_mode=NO_ENGINE_SUBSTITUTION;
set global sql_mode=NO_ZERO_IN_DATE;
set global sql_mode=ERROR_FOR_DIVISION_BY_ZERO;
set global sql_mode=NO_AUTO_CREATE_USER;

Thanks (http://forum.fengoffice.com/index.php?topic=20915.0)

Pages: [1]
anything