Dependency filters can be kept during a session
This commit is contained in:
parent
525497e1f4
commit
fa45d59ea8
2 changed files with 48 additions and 4 deletions
includes/t-tasks
|
@ -488,6 +488,8 @@ class Ctrl_DependencyAddForm
|
|||
}
|
||||
if ( $submitted !== null ) {
|
||||
$fCtrl->getFiltersFromSelector( );
|
||||
} else {
|
||||
$fCtrl->getFiltersFromSession( );
|
||||
}
|
||||
|
||||
// Fake handling the form
|
||||
|
@ -527,6 +529,11 @@ class Ctrl_DependencyAddForm
|
|||
->addOption( '1' , 'Yes' )
|
||||
->addOption( '0' , 'No' ) );
|
||||
}
|
||||
$filters->addField( Loader::Create( 'Field' , 'keep' , 'select' )
|
||||
->setMandatory( false )
|
||||
->setDescription( 'Keep these filters for next time' )
|
||||
->addOption( '0' , 'No' )
|
||||
->addOption( '1' , 'Yes' ) );
|
||||
return $filters;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue