Skip to content

Commit

Permalink
ewallah#26 - fix: "1 hour after completion of activity Act1" text was…
Browse files Browse the repository at this point in the history
… not found in the page

Used the wrong value member var
  • Loading branch information
danowar2k committed Feb 21, 2024
1 parent 1e0f3da commit ad0546c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ M.availability_relativedate.form.fillValue = function(value, node) {
value.d = Number(node.one('select[name=relativednw]').get('value'));
value.s = Number(node.one('select[name=relativestart]').get('value'));
value.m = 0;
if (value.n == 7) {
if (value.s == 7) {
value.m = Number(node.one('select[name=relativecoursemodule]').get('value'));
}
};
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ M.availability_relativedate.form.fillValue = function(value, node) {
value.d = Number(node.one('select[name=relativednw]').get('value'));
value.s = Number(node.one('select[name=relativestart]').get('value'));
value.m = 0;
if (value.n == 7) {
if (value.s == 7) {
value.m = Number(node.one('select[name=relativecoursemodule]').get('value'));
}
};
Expand Down
2 changes: 1 addition & 1 deletion yui/src/form/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ M.availability_relativedate.form.fillValue = function(value, node) {
value.d = Number(node.one('select[name=relativednw]').get('value'));
value.s = Number(node.one('select[name=relativestart]').get('value'));
value.m = 0;
if (value.n == 7) {
if (value.s == 7) {
value.m = Number(node.one('select[name=relativecoursemodule]').get('value'));
}
};
Expand Down

0 comments on commit ad0546c

Please sign in to comment.