Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is not allowed to select closed projects at tickets creation #26100

Closed
edupulpillo opened this issue Oct 3, 2023 · 3 comments
Closed

Is not allowed to select closed projects at tickets creation #26100

edupulpillo opened this issue Oct 3, 2023 · 3 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@edupulpillo
Copy link

Bug

Is not allowed to select closed projects in Tickets.
Even when a ticket is closed, remains under garantee, and new support tickets can arise over an alreaady closed project.

Environment Version

ALl

Environment OS

All

Environment Web server

All

Environment PHP

All

Environment Database

All

Environment URL(s)

https://myserver.com/ticket/card.php?action=create&idmenu=6596&mainmenu=ticket&leftmenu=

Expected and actual behavior

Now all the closed projects appears in grey color and is not possible to select it when a ticket is created.
This force the user to reopen the project, then assign the project to the ticket, and close again the project.

Steps to reproduce the behavior

No response

Attached files

No response

@edupulpillo edupulpillo added the Bug This is a bug (something does not work as expected) label Oct 3, 2023
@edupulpillo edupulpillo changed the title Is not allowed to select closed projects in Tickets Is not allowed to select closed projects at tickets creation Oct 3, 2023
aspangaro added a commit to aspangaro/dolibarr that referenced this issue Oct 15, 2023
@aspangaro
Copy link
Member

Thanks for your return.
Fix proposed in branch v14. The fix will go up on higher versions as time goes by if it's accepted.

I closed this issue.

@edupulpillo
Copy link
Author

edupulpillo commented Oct 15, 2023

Thank you, at the moment the problem still is present in v17.0.3, and updating in the file public_html/core/class/html.formticket.class.php the call to select_projects(-1, GETPOST('projectid', 'int'), 'projectid', 0, 0, 1, 0, 0, 0, 0, '', 1, 0, 'maxwidth500'); is not fixing the problem, since still appears in grey and unselectionable the projects that are closed in the project list.

image

eldy pushed a commit that referenced this issue Oct 20, 2023
#26223)

* FIX #26100 - Ticket - On creation, list of closed project are excluded

* In project list, discard closed projects on ticket creation/edit
@edupulpillo
Copy link
Author

Hi the problem still is present in Dolibarr v18.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

2 participants