Show last comment in infobar
This commit is contained in:
parent
905d5c1783
commit
2c68ea01be
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ frappe.ui.form.InfoBar = Class.extend({
|
|||
.popover("destroy")
|
||||
|
||||
if(this.docinfo.comments && this.docinfo.comments.length) {
|
||||
var last = this.docinfo.comments[0];
|
||||
var last = this.docinfo.comments[this.docinfo.comments.length - 1];
|
||||
this.$comments
|
||||
.popover({
|
||||
title: __("Last Comment"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue