After installing and setting up commerce_purchase_order and exporting my site config, it worked fine, but the "payment_method_types" key in the commerce_payment.commerce_payment_gateway.purchase_order.yml config looked like this:
payment_method_types:
- purchase_order
- purchase_order
Then, the next time I tried importing my site's config, it saw that config file as being changed. Even if I import it again, it still shows up as being modified next time. So then I re-exported my site config, and then the config file had this:
payment_method_types:
- purchase_order
- purchase_order
- purchase_order
I thought that was the end of it, but today I re-exported my configuration again and now there are 4 instances:
payment_method_types:
- purchase_order
- purchase_order
- purchase_order
- purchase_order
Issue fork commerce-3059389
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bmcclure CreditAttribution: bmcclure as a volunteer and at Top Floor commentedComment #3
FatherShawnI've also seen this behavior, and it's definitely annoying. #3024359: Unable to translate Payment instructions is caused by the lack of a schema for the config. I'm wondering if this is a side effect?
Comment #4
bhushan.nagaonkar CreditAttribution: bhushan.nagaonkar at Axelerant commentedI can also reproduce this issue with version 8.x-1.2
Comment #5
FatherShawnDoes this behavior persist in 2.x?
Comment #6
scott_euser CreditAttribution: scott_euser commentedI investigated this issue (which still occurs in Purchase Order 2x) and actually its documented in a comment in Commerce Core at https://git.drupalcode.org/project/commerce/-/blob/8.x-2.x/modules/payme... and adding an array_unique there sorts the issue. I can't see a way for Purchase Order to solve this as this happens in the PaymentGatewayBase within the Commerce Core > Payment module. I'll open a merge request there.
Comment #8
scott_euser CreditAttribution: scott_euser commentedMerge request attached; this also applies fine to commerce 2x
Comment #12
jsacksick CreditAttribution: jsacksick at Centarro for Matsmart commentedCommitted, thanks.