Show last comment in infobar

This commit is contained in:
Nabin Hait 2014-10-17 12:46:15 +05:30
parent 905d5c1783
commit 2c68ea01be

View file

@ -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"),