Merge pull request #7876 from deepeshgarg007/time_line_fix
fix: Do not submit comments if timeline does not exists
This commit is contained in:
commit
d12697c827
2 changed files with 6 additions and 2 deletions
|
|
@ -540,7 +540,9 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
|
||||
me.script_manager.trigger("after_save");
|
||||
// submit comment if entered
|
||||
me.timeline.comment_area.submit();
|
||||
if (me.timeline) {
|
||||
me.timeline.comment_area.submit();
|
||||
}
|
||||
me.refresh();
|
||||
} else {
|
||||
if(on_error) {
|
||||
|
|
|
|||
|
|
@ -722,7 +722,9 @@ _f.Frm.prototype._save = function(save_action, callback, btn, on_error, resolve,
|
|||
|
||||
me.script_manager.trigger("after_save");
|
||||
// submit comment if entered
|
||||
me.timeline.comment_area.submit();
|
||||
if (me.timeline) {
|
||||
me.timeline.comment_area.submit();
|
||||
}
|
||||
me.refresh();
|
||||
} else {
|
||||
if (on_error) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue