Skip to content

Commit

Permalink
Always dispay configuration value for settings
Browse files Browse the repository at this point in the history
When displaying result of submitted page do not display values from
$_POST array. We need to display values that were actually stored into
the database.  This is because the input value might be processed,
stripped, or trimmed.
  • Loading branch information
getdatakick committed Nov 14, 2019
1 parent 914010b commit 51e3afb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bankwire.php
Expand Up @@ -244,9 +244,9 @@ public function renderForm()
public function getConfigFieldsValues()
{
return [
'BANK_WIRE_DETAILS' => Tools::getValue('BANK_WIRE_DETAILS', Configuration::get('BANK_WIRE_DETAILS')),
'BANK_WIRE_OWNER' => Tools::getValue('BANK_WIRE_OWNER', Configuration::get('BANK_WIRE_OWNER')),
'BANK_WIRE_ADDRESS' => Tools::getValue('BANK_WIRE_ADDRESS', Configuration::get('BANK_WIRE_ADDRESS')),
'BANK_WIRE_DETAILS' => Configuration::get('BANK_WIRE_DETAILS'),
'BANK_WIRE_OWNER' => Configuration::get('BANK_WIRE_OWNER'),
'BANK_WIRE_ADDRESS' => Configuration::get('BANK_WIRE_ADDRESS'),
];
}

Expand Down

0 comments on commit 51e3afb

Please sign in to comment.