devops.php 2.6 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. $config->repo->editor->view = array('id' => 'commentText', 'tools' => 'simpleTools');
  3. $config->repo->editor->diff = array('id' => 'commentText', 'tools' => 'simpleTools');
  4. $config->repo->editor->ajaxgeteditorcontent = array('id' => 'commentText', 'tools' => 'simpleTools');
  5. $config->repo->editor->ajaxgetdiffeditorcontent = array('id' => 'commentText', 'tools' => 'simpleTools');
  6. $now = helper::now();
  7. $config->repo->form->addBug = array();
  8. $config->repo->form->addBug['file'] = array('required' => true, 'type' => 'string');
  9. $config->repo->form->addBug['revision'] = array('required' => true, 'type' => 'string');
  10. $config->repo->form->addBug['product'] = array('required' => true, 'type' => 'int');
  11. $config->repo->form->addBug['title'] = array('required' => true, 'type' => 'string');
  12. $config->repo->form->addBug['begin'] = array('required' => true, 'type' => 'int');
  13. $config->repo->form->addBug['end'] = array('required' => true, 'type' => 'int');
  14. $config->repo->form->addBug['branch'] = array('required' => false, 'type' => 'int', 'default' => 0);
  15. $config->repo->form->addBug['execution'] = array('required' => false, 'type' => 'int', 'default' => 0);
  16. $config->repo->form->addBug['pri'] = array('required' => false, 'type' => 'int', 'default' => 3);
  17. $config->repo->form->addBug['severity'] = array('required' => false, 'type' => 'int', 'default' => 3);
  18. $config->repo->form->addBug['module'] = array('required' => false, 'type' => 'int', 'default' => 0);
  19. $config->repo->form->addBug['repoType'] = array('required' => false, 'type' => 'string', 'default' => '');
  20. $config->repo->form->addBug['assignedTo'] = array('required' => false, 'type' => 'string', 'default' => '');
  21. $config->repo->form->addBug['steps'] = array('required' => false, 'type' => 'string', 'default' => '', 'control' => 'editor');
  22. $config->repo->form->addBug['fromReversion'] = array('required' => false, 'type' => 'string', 'default' => '');
  23. $config->repo->form->addBug['severity'] = array('required' => false, 'type' => 'int', 'default' => 3);
  24. $config->repo->form->addBug['openedDate'] = array('required' => false, 'type' => 'string', 'default' => $now);
  25. $config->repo->form->addBug['assignedDate'] = array('required' => false, 'type' => 'string', 'default' => $now);
  26. $config->repo->form->addBug['openedBuild'] = array('required' => false, 'type' => 'string', 'default' => 'trunk');
  27. $config->repo->form->addBug['type'] = array('required' => false, 'type' => 'string', 'default' => 'codeimprovement');