Dolibarr / dolibarr

Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
https://www.dolibarr.org
GNU General Public License v3.0
5.09k stars 2.68k forks source link

Problem in societe/project.php. Blank page from thirparty to projects or projects to thirdparty #28505

Open xbloq opened 4 months ago

xbloq commented 4 months ago

Bug

Users, not administrators, have a blank page to open project from third

Environment Version

19.0

Environment OS

No response

Environment Web server

No response

Environment PHP

8.2

Environment Database

No response

Environment URL(s)

No response

Expected and actual behavior

PHP Warning: Undefined variable $arrayofmassactions in /dolibarr/htdocs/societe/project.php on line 105 PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /dolibarr/htdocs/core/class/html.form.class.php:833 Stack trace:

0 /dolibarr/htdocs/societe/project.php(105): Form->selectMassAction()

1 {main}

thrown in /dolibarr/htdocs/core/class/html.form.class.php on line 833

I can work if I put $arrayofmassactions = array(); in line 105 before $massactionbutton = $form->selectMassAction('', $arrayofmassactions); of /htdocs/societe/project.php

Steps to reproduce the behavior

No response

Attached files

No response

mathieu-rossignol commented 3 months ago

Hi guys, got exactly the same problem with 19.0.0, is it fixed in 19.0.1 ?

leonbrehme commented 3 months ago

Nope. The problem is also present in 19.0.1

nicolasponthus commented 2 months ago

The issue seems to be linked to user permission: adding thirdparty suppression to user permission seems to solve it. Not ideal though...