Item name on "new task" form

The item name will now be displayed on the new task form when it is
displayed from an item's page.
This commit is contained in:
Emmanuel BENOîT 2012-02-07 09:29:20 +01:00
parent f7bf8c469a
commit 49cc53e31f
3 changed files with 5 additions and 3 deletions
includes/t-tasks

View file

@ -96,7 +96,10 @@ class Ctrl_AddTaskForm
$form->addField( Loader::Create( 'Field' , 'to' , 'hidden' )
->setDefaultValue( $target ) )
->addField( Loader::Create( 'Field' , 'item' , 'hidden' )
->setDefaultValue( $target ) );
->setDefaultValue( $target ) )
->addField( Loader::Create( 'Field' , 'item-name' , 'label' )
->setDescription( 'Item:' )
->setDefaultValue( $item->name ) );
}
$page->setTitle( 'New task' );