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

Supplier_proposal #33232

Open
poizer opened this issue Feb 25, 2025 · 1 comment
Open

Supplier_proposal #33232

poizer opened this issue Feb 25, 2025 · 1 comment
Assignees
Labels
Bug This is a bug (something does not work as expected)

Comments

@poizer
Copy link

poizer commented Feb 25, 2025

Bug

Changing the project in view mode is facing issue, compared to suppliers_orders.
The line 1620 is
$morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, ($action == 'classify' ? 'projectid' : 'none'), 0, 0, 0, 1, '', 'maxwidth300');
In that case, the $object->socid does not allow to change the project. It should be replaced by
$morehtmlref .= $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, (empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS) ? $object->socid : -1), $object->fk_project, ($action == 'classify' ? 'projectid' : 'none'), 0, 0, 0, 1, '', 'maxwidth300');
fourn/commande/card.php

Dolibarr Version

18.03

Environment PHP

No response

Environment Database

No response

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

@poizer poizer added the Bug This is a bug (something does not work as expected) label Feb 25, 2025
@hregis
Copy link
Contributor

hregis commented Feb 28, 2025

@poizer i send a fix, thank you :#33277

@hregis hregis self-assigned this Feb 28, 2025
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