Skip to content

[BUGFIX] Add missing value for area divider item#286

Open
HimanshuRamavat07 wants to merge 1 commit intoextcode:mainfrom
HimanshuRamavat07:patch-1
Open

[BUGFIX] Add missing value for area divider item#286
HimanshuRamavat07 wants to merge 1 commit intoextcode:mainfrom
HimanshuRamavat07:patch-1

Conversation

@HimanshuRamavat07
Copy link

Summary

  • Fix malformed TCA item in price_measure_unit for backend variants.
  • Add missing 'value' => '--div--' to the measure.area divider entry.
  • Prevent backend save warning (Undefined array key "value") in TYPO3 DataHandler.

Problem

In Configuration/TCA/tx_cartproducts_domain_model_product_bevariant.php, the item
tx_cartproducts_domain_model_product_product.measure.area is defined without a value.
TYPO3 expects items entries to contain a value and can trigger:
PHP Warning: Undefined array key "value" during save.

Change

Updated:

['label' => $_LLL . ':tx_cartproducts_domain_model_product_product.measure.area', 'value' => '--div--'],

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant