From cb66673f6fc47cb4e7cd66e08d97531bf5eea2d3 Mon Sep 17 00:00:00 2001 From: David Bogner Date: Fri, 13 Oct 2023 16:31:55 +0200 Subject: [PATCH] Fix params in form --- rule/ftpsyncfiles/rule_class.php | 2 +- rule/ftpsyncfiles/rule_form.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rule/ftpsyncfiles/rule_class.php b/rule/ftpsyncfiles/rule_class.php index 1b2af795..7067cd70 100644 --- a/rule/ftpsyncfiles/rule_class.php +++ b/rule/ftpsyncfiles/rule_class.php @@ -83,7 +83,7 @@ public function __construct($df = 0, $rule = 0) { $this->sftpserver = $this->rule->param2; $this->sftpport = $this->rule->param3; $this->sftpusername = $this->rule->param4; - $this->sftppassword = $this->rule->param5; + $this->sftppassword = $this->rule->param10; $this->sftppath = $this->rule->param6; $this->matchingfield = $this->rule->param7; $this->teammemberfieldid = $this->rule->param8; diff --git a/rule/ftpsyncfiles/rule_form.php b/rule/ftpsyncfiles/rule_form.php index 9072921e..9840a7d5 100644 --- a/rule/ftpsyncfiles/rule_form.php +++ b/rule/ftpsyncfiles/rule_form.php @@ -40,8 +40,8 @@ public function rule_definition() { $mform->setType('param3', PARAM_INT); $mform->addElement('text', 'param4', get_string('sftpusername', 'datalynxrule_ftpsyncfiles')); $mform->setType('param4', PARAM_TEXT); - $mform->addElement('text', 'param5', get_string('sftppassword', 'datalynxrule_ftpsyncfiles')); - $mform->setType('param5', PARAM_TEXT); + $mform->addElement('text', 'param10', get_string('sftppassword', 'datalynxrule_ftpsyncfiles')); + $mform->setType('param10', PARAM_TEXT); $mform->addElement('text', 'param6', get_string('sftppath', 'datalynxrule_ftpsyncfiles')); $mform->setType('param6', PARAM_SAFEPATH); $mform->addElement('header', 'settingsprofile', get_string('fields', 'datalynx'));