Skip to content

Commit

Permalink
fix: fieldname in condition (LAN-44)
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra authored Jul 18, 2023
1 parent ee5fb49 commit 202aad0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ frappe.ui.form.on("Catch Log Entry", {
const current_year = today.getFullYear();
const current_month = today.getMonth();

if (!frm.doc.year_field) {
if (!frm.doc.year) {
frm.set_value("year", current_month < 6 ? current_year - 1 : current_year);
}
},
Expand Down

0 comments on commit 202aad0

Please sign in to comment.