ソースを参照

Merge pull request #1988 from mbauskar/develop

[minor] allowed to render the charts if only single record is available
version-14
Nabin Hait 9年前
committed by GitHub
コミット
65e000db67
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      frappe/public/js/frappe/ui/charts.js

+ 2
- 2
frappe/public/js/frappe/ui/charts.js ファイルの表示

@@ -6,8 +6,8 @@ frappe.ui.Chart = Class.extend({
$.extend(this.opts, opts);
this.show_chart(false);

if(this.opts.data && ((this.opts.data.columns && this.opts.data.columns.length > 1)
|| (this.opts.data.rows && this.opts.data.rows.length > 1))) {
if(this.opts.data && ((this.opts.data.columns && this.opts.data.columns.length >= 1)
|| (this.opts.data.rows && this.opts.data.rows.length >= 1))) {
this.chart = this.render_chart();
this.show_chart(true);
}


読み込み中…
キャンセル
保存