Hide old projects

Hello.

When I’m placing an order with a supplier, I can link it to the corresponding project. But the list of projects shows all projects (opened and closed several years ago).

Is there any way or solution to hide the closed projects?

I have tried using the PROJECT_HIDE_UNSELECTABLES and PROJECT_ALWAYS_DISCARD_CLOSED_PROJECTS_IN_SELECT variables in “configuration/other configurations” without success.

Thanks in advance.

I think this warrants a bug report on Issues · Dolibarr/dolibarr · GitHub

Ok. I have done it. Thank you :+1:

@Polvaris is it the very same as described here that you experience?

Yes, the same issue that I had described yesterday 13/05/2026 :grinning_face:

When I’m placing an order with a supplier, I can’t link it to the corresponding project; OR

  1. When I create order under a project and insert a supplier - the project tab goes blank and no projects are listed

  2. I configure all my projects as customer specific - I have no “generic” or “unassigned” projects

Background: I recently upgraded from 19 to 23 because I changed server from CentOS 7 (EOL June 2024) to Ubuntu 24. I did not experience this problem in Dolibarr 19.

Gemini AI tells me that I have run into “a confirmed hardcoded JavaScript refresh limitation in Dolibarr. When a form undergoes a core AJAX reload (triggered by changing a Third Party), Dolibarr’s client-side script purges uncommitted dependent selections, completely ignoring backend database override constants. To bypass this JavaScript issue entirely, you must use a workflow where the vendor and the project never interact on the same creation screen.”

Gemini suggests the following:
Fix 1: The Draft Bypassing Method (Easiest)
Fix 2: Change Project to “Universal” (Zero Code Required)
Fix 3: Direct Assignment from the Project Management Panel

How I managed:
I have to use Fix 1 - but it is slow and tedious
Fix 2 - is no the way I configure my projects - since all are tied to a Primary Customer
Fix 3 - is the specific problem that I am experiencing.

Thanks in advance

Yes, it is - the same issue that I had described yesterday 13/05/2026 :grinning_face:

When I’m placing an order with a supplier, I can’t link it to the corresponding project; OR

  1. When I create order under a project and insert a supplier - the project tab goes blank and no projects are listed

  2. I configure all my projects as customer specific - I have no “generic” or “unassigned” projects

Background: I recently upgraded from 19 to 23 because I changed server from CentOS 7 (EOL June 2024) to Ubuntu 24. I did not experience this problem in Dolibarr 19.

Gemini AI tells me that I have run into “a confirmed hardcoded JavaScript refresh limitation in Dolibarr. When a form undergoes a core AJAX reload (triggered by changing a Third Party), Dolibarr’s client-side script purges uncommitted dependent selections, completely ignoring backend database override constants. To bypass this JavaScript issue entirely, you must use a workflow where the vendor and the project never interact on the same creation screen.”

Gemini suggests the following:
Fix 1: The Draft Bypassing Method (Easiest)
Fix 2: Change Project to “Universal” (Zero Code Required)
Fix 3: Direct Assignment from the Project Management Panel

How I managed:
I have to use Fix 1 - but it is slow and tedious
Fix 2 - is no the way I configure my projects - since all are tied to a Primary Customer
Fix 3 - is the specific problem that I am experiencing.

Thanks in advance

I can not see your reply