Przeglądaj źródła

hotfix in event

version-14
Nabin Hait 10 lat temu
rodzic
commit
66f42121a5
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      frappe/core/doctype/event/event.py

+ 3
- 1
frappe/core/doctype/event/event.py Wyświetl plik

@@ -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]


Ładowanie…
Anuluj
Zapisz