ソースを参照

[fix] Don't remove last columns if empty (#2256)

version-14
Nabin Hait 8年前
committed by Rushabh Mehta
コミット
7cfe6c5ff6
1個のファイルの変更0行の追加3行の削除
  1. +0
    -3
      frappe/www/print.py

+ 0
- 3
frappe/www/print.py ファイルの表示

@@ -250,9 +250,6 @@ def make_layout(doc, meta, format_data=None):
if page[-1]['has_data']==False: if page[-1]['has_data']==False:
# truncate last section if empty # truncate last section if empty
del page[-1] del page[-1]
elif page[-1]['columns'][-1]['fields']==[]:
# truncate last column in empty
del page[-1]['columns'][-1]


section = get_new_section() section = get_new_section()
if df.fieldtype=='Section Break' and df.label: if df.fieldtype=='Section Break' and df.label:


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