diff --git a/module/ai/config.php b/module/ai/config.php index 759559abef..b18bebf35c 100644 --- a/module/ai/config.php +++ b/module/ai/config.php @@ -117,9 +117,23 @@ foreach($config->ai->targetForm as $forms) /* Used to format form redirection links, useful if method requires additional arguments. */ $config->ai->targetFormVars = array(); -$config->ai->targetFormVars['story'] = array('change' => 'storyID=%d'); -$config->ai->targetFormVars['execution'] = array(); -$config->ai->targetFormVars['doc'] = array('edit' => 'docID=%d'); +$config->ai->targetFormVars['story']['create'] = (object)array('format' => 'product=%d', 'args' => array('product')); +$config->ai->targetFormVars['story']['batchcreate'] = (object)array('format' => 'productID=%d', 'args' => array('product')); +$config->ai->targetFormVars['story']['change'] = (object)array('format' => 'storyID=%d', 'args' => array('story')); +$config->ai->targetFormVars['productplan']['create'] = (object)array('format' => 'productID=%d', 'args' => array('product')); +$config->ai->targetFormVars['productplan']['edit'] = (object)array('format' => 'planID=%d', 'args' => array('plan')); +$config->ai->targetFormVars['task']['create'] = (object)array('format' => 'executionID=%d&storyID=%d', 'args' => array('execution', 'story')); +$config->ai->targetFormVars['task']['batchcreate'] = (object)array('format' => 'executionID=%d&storyID=%d', 'args' => array('execution', 'story')); +$config->ai->targetFormVars['task']['edit'] = (object)array('format' => 'taskID=%d', 'args' => array('task')); +$config->ai->targetFormVars['bug']['create'] = (object)array('format' => 'productID=%d', 'args' => array('product')); +$config->ai->targetFormVars['bug']['edit'] = (object)array('format' => 'bugID=%d', 'args' => array('bug')); +$config->ai->targetFormVars['testcase']['create'] = (object)array('format' => 'productID=%d', 'args' => array('product')); +$config->ai->targetFormVars['testcase']['edit'] = (object)array('format' => 'caseID=%d', 'args' => array('case')); +$config->ai->targetFormVars['testreport']['create'] = (object)array('format' => 'productID=%d', 'args' => array('product')); +$config->ai->targetFormVars['execution']['testreport'] = (object)array('format' => '', 'args' => array()); +$config->ai->targetFormVars['tree']['browse'] = (object)array('format' => 'rootID=%d&view=%s', 'args' => array('root', 'view')); +$config->ai->targetFormVars['programplan']['create'] = (object)array('format' => 'projectID=%d', 'args' => array('project')); +$config->ai->targetFormVars['doc']['edit'] = (object)array('format' => 'docID=%d', 'args' => array('doc')); /* Menu printing configurations. */ $config->ai->menuPrint = new stdclass();