Fixing style errors.
This commit is contained in:
parent
8438c7cd6c
commit
8b5c4b02c1
@ -709,7 +709,6 @@ if (empty($reshook)) {
|
|||||||
// Check that all mandatory fields are filled
|
// Check that all mandatory fields are filled
|
||||||
$ok = 1;
|
$ok = 1;
|
||||||
foreach ($listfield as $f => $value) {
|
foreach ($listfield as $f => $value) {
|
||||||
|
|
||||||
// Discard check of mandatory fields for country for some tables
|
// 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'))) {
|
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
|
continue; // For some pages, country is not mandatory
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user