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

#29026 [Class] fix: selectForForms issue on check fields before use for modification on objectdesc #29027

Merged
merged 4 commits into from Apr 8, 2024

Conversation

nicolas-eoxia
Copy link
Contributor

@nicolas-eoxia nicolas-eoxia commented Mar 22, 2024

@nicolas-eoxia nicolas-eoxia self-assigned this Mar 22, 2024
@nicolas-eoxia nicolas-eoxia requested a review from eldy March 22, 2024 16:58
@nicolas-eoxia nicolas-eoxia added the Bug This is a bug (something does not work as expected) label Mar 22, 2024
@@ -8040,7 +8040,6 @@ public function selectForForms($objectdesc, $htmlname, $preSelectedValue, $showe
if ($objectfield) { // We must retreive the objectdesc from the field or extrafield
// Example: $objectfield = 'product:options_package'
$tmparray = explode(':', $objectfield);
$objectdesc = '';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this line ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this line because the variable is defined in the if and else.
But it's true that there is a case where it could be redefined if this condition is false !empty($extrafields->attributes[$objectforfieldstmp->table_element]['param'][$key]['options']))

I can put it back if I need to

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @eldy
Awaiting your reply for this fix

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Mar 23, 2024
@nicolas-eoxia nicolas-eoxia requested a review from eldy April 2, 2024 08:19
@eldy eldy merged commit 485a17b into Dolibarr:19.0 Apr 8, 2024
3 of 4 checks passed
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) Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants