Skip to content

Commit

Permalink
tune
Browse files Browse the repository at this point in the history
  • Loading branch information
Snickser committed May 10, 2024
1 parent f5a2c87 commit a04d789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
get_string('skipmode', 'paygw_payanyway'),
get_string('skipmode', 'paygw_payanyway')
);
$mform->setType('skipmode', PARAM_TEXT);
$mform->setType('skipmode', PARAM_INT);
$mform->addHelpButton('skipmode', 'skipmode', 'paygw_payanyway');

$mform->addElement(
Expand All @@ -94,7 +94,7 @@ public static function add_configuration_to_gateway_form(\core_payment\form\acco
get_string('passwordmode', 'paygw_payanyway'),
get_string('passwordmode', 'paygw_payanyway')
);
$mform->setType('passwordmode', PARAM_TEXT);
$mform->setType('passwordmode', PARAM_INT);
$mform->disabledIf('passwordmode', 'skipmode', "neq", 0);

$mform->addElement('text', 'password', get_string('password', 'paygw_payanyway'));
Expand Down

0 comments on commit a04d789

Please sign in to comment.