Adding multiple dependencies
Added a selector that allows multiple dependencies to be added without going back to the task's page.
This commit is contained in:
parent
fa45d59ea8
commit
d6f170db68
2 changed files with 39 additions and 4 deletions
includes/t-tasks
|
@ -433,6 +433,12 @@ class Ctrl_EditNoteForm
|
|||
class Ctrl_DependencyAddForm
|
||||
extends Controller
|
||||
{
|
||||
private $more;
|
||||
|
||||
public function __construct( $more = false )
|
||||
{
|
||||
$this->more = $more;
|
||||
}
|
||||
|
||||
public function handle( Page $page )
|
||||
{
|
||||
|
@ -458,10 +464,13 @@ class Ctrl_DependencyAddForm
|
|||
->addField( Loader::Create( 'Field' , 'to' , 'hidden' )
|
||||
->setDefaultValue( $id ) )
|
||||
->setURL( 'tasks/view?id=' . $id )
|
||||
->addController( Loader::Ctrl( 'dependency_add' ) );
|
||||
->addController( Loader::Ctrl( 'dependency_add' , $this->more ) );
|
||||
|
||||
// Handle filtering and re-displaying
|
||||
$filters = $this->handleFiltering( $page , $form , $task );
|
||||
|
||||
if ( $this->more ) {
|
||||
return $form->controller( );
|
||||
}
|
||||
return array( $form->controller( ) , $filters );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue