소스 검색

hotfix in event

version-14
Nabin Hait 10 년 전
부모
커밋
66f42121a5
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. +3
    -1
      frappe/core/doctype/event/event.py

+ 3
- 1
frappe/core/doctype/event/event.py 파일 보기

@@ -108,7 +108,9 @@ def get_events(start, end, user=None, for_reminder=False):

def add_event(e, date):
new_event = e.copy()
enddate = add_days(date,int(date_diff(e.ends_on.split(" ")[0], e.starts_on.split(" ")[0])))

enddate = add_days(date,int(date_diff(e.ends_on.split(" ")[0], e.starts_on.split(" ")[0]))) \
if (e.starts_on and e.ends_on) else date
new_event.starts_on = date + " " + e.starts_on.split(" ")[1]
if e.ends_on:
new_event.ends_on = enddate + " " + e.ends_on.split(" ")[1]


불러오는 중...
취소
저장