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

FIX transfer of line extrafields from order to invoice #7333

Merged
merged 3 commits into from Sep 11, 2017

Conversation

fappels
Copy link
Contributor

@fappels fappels commented Sep 5, 2017

No description provided.

// Extrafields
if (empty($conf->global->MAIN_EXTRAFIELDS_DISABLED) && method_exists($lines[$i], 'fetch_optionals')) {
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
$extrafields = new ExtraFields($db);
Copy link
Member

Choose a reason for hiding this comment

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

Because var $extrafields is already defined globally previously, it looks dangerous to use same name here.
If you rename into extrafieldsforlines, does you fix still work ?

@eldy eldy added the PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do) label Sep 7, 2017
@fappels
Copy link
Contributor Author

fappels commented Sep 7, 2017

Rename done and tested.

@eldy eldy merged commit e9912c0 into Dolibarr:4.0 Sep 11, 2017
@fappels fappels deleted the 4.0_fix_transfer_line_extrafields branch September 21, 2017 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR to fix or conflict to solve PR needs to be fixed to be integrated (except for conflicts, a comment describes the fix to do)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants