Fix the bug about calendarId
authorhs321.lee <hs321.lee@samsung.com>
Wed, 21 Aug 2013 10:36:14 +0000 (19:36 +0900)
committerhs321.lee <hs321.lee@samsung.com>
Wed, 21 Aug 2013 10:36:41 +0000 (19:36 +0900)
Change-Id: Ifce3c772dfad59bec17f04ae1cd755a06ca9a104
Signed-off-by: hs321.lee <hs321.lee@samsung.com>
src/FScl_CalEventImpl.cpp
src/FScl_CalTodoImpl.cpp

index 852c06e..d3abb77 100644 (file)
@@ -128,6 +128,7 @@ _CalEventImpl::_CalEventImpl(void)
        calendar_record_set_int(eventHandle, _calendar_event.busy_status, CALENDAR_EVENT_BUSY_STATUS_FREE);
        calendar_record_set_int(eventHandle, _calendar_event.priority, CALENDAR_EVENT_PRIORITY_NORMAL);
        calendar_record_set_int(eventHandle, _calendar_event.sensitivity, CALENDAR_SENSITIVITY_PUBLIC);
+       calendar_record_set_int(eventHandle, _calendar_event.calendar_book_id, INVALID_RECORD_ID);
 
        r = __reminderList.Construct();
        SysTryReturnVoidResult(NID_SCL, r == E_SUCCESS, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
index 490257f..b30998f 100644 (file)
@@ -101,6 +101,7 @@ _CalTodoImpl::_CalTodoImpl(void)
        calendar_record_set_int(todoHandle, _calendar_todo.todo_status, CALENDAR_TODO_STATUS_NONE);
        calendar_record_set_int(todoHandle, _calendar_todo.priority, CALENDAR_TODO_PRIORITY_NORMAL);
        calendar_record_set_int(todoHandle, _calendar_todo.sensitivity, CALENDAR_SENSITIVITY_PUBLIC);
+       calendar_record_set_int(todoHandle, _calendar_todo.calendar_book_id, INVALID_RECORD_ID);
 
        __todoRecord.ResetHandle(todoHandle);