Notes |
|
|
Any chance you could write a quick patch for this one? |
|
|
(0001216)
|
opto
|
2010-08-22 04:15
|
|
will try.
But I 'll be on a business trip - either tomorrow or Friday in the train, or after 2.1 (?).
Klaus |
|
|
|
Excellent.
And the sooner, the better. 2.1 is still a couple weeks away. |
|
|
(0001236)
|
opto
|
2010-08-28 09:25
(Last edited: 2010-08-28 09:27) |
|
to get the project id (at the moment not part of get):
add global $project_id in
global $AppUI, $m, $obj, $task_id, $project_id;
in task_tab.view.links.php
in links: addedit:
get id's (at top of file)
if ($link_id==0) //we have an add, no edit
{
$link_project= (int) w2PgetParam($_GET, 'project_id', 0);
$link_task= (int) w2PgetParam($_GET, 'task_id', 0);
}
preset values if no link_id given
put somewhere below
// load the record data
$link = new CLink();
if ($link_id==0)
{
$link->link_project=$link_project;
$link->link_task = $link_task;
$linkTask= new CTask;
$linkTask->loadFull($AppUI, (int)1);//$link_task);
$link->task_name=$linkTask->task_name;
}
works in IE8
any more efficient way to get just the name rather than loadFull?
I don't understand:
in \links\index_table.php:
the link button seems to be a post:
'<form action="?m=links&a=addedit&project_id='.$project_id.'&task_id='.$task_id.'" method="post" accept-charset="utf-8">', '</form>'
but the resulting page in IE8 and the handling in addedit is a get
|
|
|
|
Hi Klaus,
Thanks for the patch, was very helpful!
I have fixed this bug in my github branch. Should hopefully be in subversion soon and will definitely be in for 2.1.
As a side note, fixing this bug caused a new one for me - http://bugs.web2project.net/view.php?id=570. Just a heads up. :-)
|
|