Closed
Bug 275357
Opened 20 years ago
Closed 19 years ago
New Task always defaults to current day instead of selected day
Categories
(Calendar :: Sunbird Only, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stepper, Assigned: jminta)
References
Details
Attachments
(2 files)
|
4.16 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.70 KB,
patch
|
mvl
:
first-review+
gekacheka
:
second-review-
|
Details | Diff | Splinter Review |
select a day other than today and add a new task (either toolbar or contextmenu). the popup dialog will nevertheless show up with current day. it should be like adding an event, which correctly defaults to the selected day.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
(patch -p 2 -i file.patch)
New task defaults to no start date or due date, so cannot just set the dates on
the created task (as is done for new event).
If task has no start or due datetime, task dialog did not change
datetimepickers from their default, the current date time.
Fix is to get the selectedDateTime and pass it to the task dialog as an
additional field on args, so it can default datetimepickers to that time
instead.
Tested as follows (on 0.2 branch):
For each view (day view, week view, multiweek view, month view)
select a grid box
toolbar "New Task": dialog should show selected date time for start & due
task list context menu "New Task": dialog should show selected date time
context-click grid box: dialog should show clicked date time for start & due| Assignee | ||
Comment 2•20 years ago
|
||
*** Bug 289229 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 3•19 years ago
|
||
Task start and due dates stay disabled, but when enabled, they now have the currently selected day in their datepickers.
Assignee: mostafah → jminta
Status: NEW → ASSIGNED
| Assignee | ||
Updated•19 years ago
|
Attachment #191594 -
Flags: first-review?(mvl)
Comment 4•19 years ago
|
||
Comment on attachment 191594 [details] [diff] [review] patch v1 r=mvl
Attachment #191594 -
Flags: first-review?(mvl) → first-review+
| Assignee | ||
Comment 5•19 years ago
|
||
patch checked in
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment on attachment 191594 [details] [diff] [review] patch v1 >+ var selectedDay = window.opener.gCalendarWindow.currentView.getNewEventDate(); This is not a good change. It makes the event dialog dependent on the opener, whereas before it was independent of the opener, so in theory the event dialog could be used by other applications. A better approach is to pass the date in as an additional parameter, so any application can use the event dialog.
Attachment #191594 -
Flags: second-review-
Comment 7•19 years ago
|
||
That might be a better fix, but the dialog is not meant to be used from other apps. The dialog is calendar/base does have that purpose, but this one doesn't. So I don't see it as a problem.
Comment 8•18 years ago
|
||
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
Updated•18 years ago
|
Status: RESOLVED → VERIFIED
Version: Sunbird 0.2b → Sunbird 0.2
You need to log in
before you can comment on or make changes to this bug.
Description
•