Skip to content

Commit

Permalink
Merge pull request #38 from GaturaN/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
GaturaN authored Jan 13, 2025
2 parents 7469daa + 19b3b1f commit 8e79fc7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions assist/assist/doctype/assist_priority/assist_priority.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Copyright (c) 2024, Gatura Njenga and contributors
// For license information, please see license.txt

frappe.ui.form.on('Assist Priority', {
// refresh: function(frm) {

// }
frappe.ui.form.on("Assist Priority", {
validate: function (frm) {
// if the duration is null, raise error
if (!frm.doc.duration) {
frappe.throw("Duration is required");
}
},
});

0 comments on commit 8e79fc7

Please sign in to comment.