Skip to content

Commit

Permalink
Fix module property
Browse files Browse the repository at this point in the history
  • Loading branch information
muzzwood committed Feb 22, 2024
1 parent 7b01207 commit 7b1bb38
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/components/commerce_dynamictaxmode/src/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ public function setDynamicTaxMode(Order $event)
public function getModuleConfiguration(\comModule $module): array
{
$fields = [];
$key = $module->getProperty('session_key');
$fields[] = new TextField($this->commerce, [
'name' => 'session_key',
'name' => 'properties[session_key]',
'label' => $this->adapter->lexicon('commerce_dynamictaxmode.session_key'),
'description' => $this->adapter->lexicon('commerce_dynamictaxmode.session_key.description'),
'value' => !empty($key) ? $key : 'commerce_dynamictaxmode',
'value' => $module->getProperty('session_key', 'commerce_dynamictaxmode'),
]);
return $fields;
}
Expand Down

0 comments on commit 7b1bb38

Please sign in to comment.