Merge pull request #8019 from atm-gauthier/6.0_fix_vat_mass_update
FIX : $oldvatrateclean & $newvatrateclean must be set if preg_match === false
This commit is contained in:
commit
301f509611
@ -73,7 +73,7 @@ if ($action == 'convert')
|
||||
{
|
||||
$vat_src_code_old = $reg[1];
|
||||
$oldvatrateclean = preg_replace('/\s*\(.*\)/', '', $oldvatrate); // Remove code into vatrate.
|
||||
}
|
||||
} else $oldvatrateclean=$oldvatrate;
|
||||
|
||||
// Clean vat code new
|
||||
$vat_src_code_new='';
|
||||
@ -81,7 +81,7 @@ if ($action == 'convert')
|
||||
{
|
||||
$vat_src_code_new = $reg[1];
|
||||
$newvatrateclean = preg_replace('/\s*\(.*\)/', '', $newvatrate); // Remove code into vatrate.
|
||||
}
|
||||
} else $newvatrateclean=$newvatrate;
|
||||
|
||||
// If country to edit is my country, so we change customer prices
|
||||
if ($country_id == $mysoc->country_id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user