Skip to content
Snippets Groups Projects

Issue #3485185 by ivnish: Change manual currency field to number

Merged Andrei Ivnitskii requested to merge issue/rcr-3485185:3485185-change-manual-currency into 2.0.x
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -101,8 +101,10 @@ class CurrencySettingsForm extends ConfigFormBase {
foreach ($countries as $key => $name) {
$form["usd_manual_$key"] = [
'#type' => 'textfield',
'#type' => 'number',
'#title' => $this->t("Manual @name to USD currency rate", ['@name' => $name]),
'#min' => 0,
'#step' => 0.01,
'#default_value' => $this->state->get("rcr.usd_manual_$key") ?: '',
'#states' => [
'visible' => [
Loading