* Code for task#66955.
This commit is contained in:
@@ -56,7 +56,7 @@ $config->bug->custom->createFields = $config->bug->list->customCreateFields
|
||||
$config->bug->custom->batchCreateFields = 'project,execution,deadline,steps,type,severity,os,browser,%s';
|
||||
$config->bug->custom->batchEditFields = 'type,severity,pri,assignedTo,deadline,status,resolvedBy,resolution';
|
||||
|
||||
$config->bug->excludeCheckFileds = 'severity,title,keywords';
|
||||
$config->bug->excludeCheckFileds = ',severities,';
|
||||
|
||||
$config->bug->editor = new stdclass();
|
||||
$config->bug->editor->create = array('id' => 'steps', 'tools' => 'bugTools');
|
||||
|
||||
@@ -194,13 +194,16 @@ class bugModel extends model
|
||||
$title = trim($title);
|
||||
if(empty($title))
|
||||
{
|
||||
$this->common->checkFieldEmpty('bug', 'title', $data, $i);
|
||||
if(dao::isError()) return false;
|
||||
$canNotEmpty = $this->common->checkFieldEmpty('bug', $data, $i);
|
||||
if($canNotEmpty)
|
||||
{
|
||||
dao::$errors['message'][] = sprintf($this->lang->error->notempty, $this->lang->bug->title);
|
||||
return false;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$bug = new stdClass();
|
||||
$bug->openedBy = $this->app->user->account;
|
||||
$bug->openedDate = $now;
|
||||
|
||||
Reference in New Issue
Block a user