Closed Bug 537456 Opened 15 years ago Closed 13 years ago

It is not possible to copy/paste Tasks from the Task View or Today Pane

Categories

(Calendar :: Tasks, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: pavel.zahradnik, Assigned: mmecca)

Details

Attachments

(2 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0

It is not possible to copy/paste Tasks while this is possible to do with Events.

Reproducible: Always
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks for posting this.  Confirmed issue.  You can't even paste into the "click here to add a new task" box, you have to manually type.

Thanks,
Lance

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b3pre Thunderbird/3.1.15
Platform does include Linux (and probably all platforms).  Would someone with sufficient authority please update platform, thanks!

Lance
OS: Windows XP → All
Hardware: x86 → All
(In reply to Lance Haverkamp from comment #1)
> You can't even paste into the
> "click here to add a new task" box, you have to manually type.
> 
On Win7 I can't reproduce. I can paste with Ctrl+v keys or with context menu item in the two input box "Click here to add a new task" located in task view and today-pane's task section.
Moreover, I can do the same (keys and context menu) with task boxes in every view.

Thuderbird 8, Lightning 1.0
Cut and Copy don't work on the selected tasks in the task trees, and the task tree is missing the Cut/Copy/Paste commands.
Assignee: nobody → matthew.mecca
Status: NEW → ASSIGNED
Summary: It is not possible to copy/paste Tasks → It is not possible to copy/paste Tasks from the Task View or Today Pane
This is behaving strangely...The other day I couldn't paste into that box, now I can.  I'll have to keep an eye on this. 

Using Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20110922 Lightning/1.0b3pre Thunderbird/3.1.15

(current for my distro & version of Mint Linix)
Attached patch [checked-in]Fix v1 β€” β€” Splinter Review
Adds cut/copy/paste to task trees
Attachment #582627 - Flags: review?(philipp)
Comment on attachment 582627 [details] [diff] [review]
[checked-in]Fix v1

Review of attachment 582627 [details] [diff] [review]:
-----------------------------------------------------------------

r=philipp

::: calendar/base/content/calendar-task-tree.js
@@ +126,5 @@
>          document.getElementById("calendar_new_todo_todaypane_command").setAttribute("disabled", "true");
>      }
>  
> +    // make sure the paste menu item is enabled
> +    if (calendarController2.isCommandEnabled("cmd_paste")) {

So the paste command should always be enabled? Even if there are no items to paste? Maybe you can make this dependent on if there is something in the clipboard.
Attachment #582627 - Flags: review?(philipp) → review+
(In reply to Philipp Kewisch [:Fallen] from comment #7)

> So the paste command should always be enabled? Even if there are no items to
> paste? Maybe you can make this dependent on if there is something in the
> clipboard.

I think this should be done in the controller - I'll file a follow-up bug.
Pushed to comm-central - http://hg.mozilla.org/comm-central/rev/76e1d919b991
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3
(In reply to Matthew Mecca [:mmecca] from comment #8)

> I think this should be done in the controller - I'll file a follow-up bug.

I take that back, the controller already does this properly, it's the task tree that always enables the paste command if a task is selected when the context menu is opened.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch Paste Fix (obsolete) β€” β€” Splinter Review
Disable paste command on task context menu if clipboard empty.
Attachment #584670 - Flags: review?(philipp)
Comment on attachment 584670 [details] [diff] [review]
Paste Fix

You could also use:

setElementValue("cmd_paste", calendarController2.isCommandEnabled("cmd_paste") && "true", "disabled");

Or you could instead try:

goUpdateCommand("cmd_paste");
Attachment #584670 - Flags: review?(philipp) → review+
(In reply to Philipp Kewisch [:Fallen] from comment #12)

> Or you could instead try:
> 
> goUpdateCommand("cmd_paste");

That works.
Attached patch Paste Fix v2 β€” β€” Splinter Review
Attachment #584670 - Attachment is obsolete: true
Attachment #585101 - Flags: review+
Attachment #582627 - Attachment description: Fix v1 → [checked-in]Fix v1
Comment on attachment 585101 [details] [diff] [review]
Paste Fix v2

Wanted for comm-aurora? Fix v1 is there.
Pushed to comm-aurora - http://hg.mozilla.org/releases/comm-aurora/rev/589748a1858b
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: