Fixing style errors.

This commit is contained in:
stickler-ci 2022-05-19 12:17:45 +00:00
parent 8438c7cd6c
commit 8b5c4b02c1

View File

@ -709,7 +709,6 @@ if (empty($reshook)) {
// Check that all mandatory fields are filled
$ok = 1;
foreach ($listfield as $f => $value) {
// Discard check of mandatory fields for country for some tables
if ($value == 'country_id' && in_array($tablib[$id], array('DictionaryPublicHolidays', 'DictionaryVAT', 'DictionaryRegion', 'DictionaryCompanyType', 'DictionaryHolidayTypes', 'DictionaryRevenueStamp', 'DictionaryAccountancysystem', 'DictionaryAccountancyCategory'))) {
continue; // For some pages, country is not mandatory