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:
parent
f7bf8c469a
commit
49cc53e31f
3 changed files with 5 additions and 3 deletions
2
arse
2
arse
|
@ -1 +1 @@
|
|||
Subproject commit a1d327d4657f8fa9d258ab2a2137134497181c09
|
||||
Subproject commit cdb2e952f5eb1314a925afd2dac8c5c9f4ea9823
|
|
@ -10,7 +10,6 @@ $package[ 'files' ][] = 'page_controllers';
|
|||
$package[ 'files' ][] = 'pages';
|
||||
$package[ 'files' ][] = 'views';
|
||||
|
||||
$package[ 'extras' ][] = 'Item_NameField';
|
||||
$package[ 'extras' ][] = 'Item_LocationField';
|
||||
|
||||
$package[ 'ctrls' ][] = 'add_item';
|
||||
|
|
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue