Skip to content

Commit

Permalink
Fix params in form
Browse files Browse the repository at this point in the history
  • Loading branch information
dasistwas committed Oct 13, 2023
1 parent b2e4228 commit cb66673
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rule/ftpsyncfiles/rule_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions rule/ftpsyncfiles/rule_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit cb66673

Please sign in to comment.