* Fix bug#11101.
This commit is contained in:
@@ -34,9 +34,11 @@ $config->repo->editor->view = array('id' => 'commentText', 'tools' => 'simpleT
|
||||
$config->repo->editor->diff = array('id' => 'commentText', 'tools' => 'simpleTools');
|
||||
|
||||
$config->repo->create = new stdclass();
|
||||
$config->repo->create->requiredFields = 'SCM,name,path,encoding,client';
|
||||
$config->repo->create->requiredFields = 'product,SCM,name,path,encoding,client';
|
||||
|
||||
$config->repo->edit = new stdclass();
|
||||
$config->repo->edit->requiredFields = 'SCM,name,path,encoding,client';
|
||||
$config->repo->edit->requiredFields = 'product,SCM,name,path,encoding,client';
|
||||
|
||||
$config->repo->svn = new stdclass();
|
||||
$config->repo->svn->requiredFields = 'account,password';
|
||||
|
||||
|
||||
@@ -233,8 +233,10 @@ class repoModel extends model
|
||||
{
|
||||
if(!$this->checkClient()) return false;
|
||||
if(!$this->checkConnection()) return false;
|
||||
|
||||
$data = fixer::input('post')
|
||||
->skipSpecial('path,client,account,password')
|
||||
->setDefault('product', '')
|
||||
->join('product', ',')
|
||||
->get();
|
||||
|
||||
@@ -275,6 +277,7 @@ class repoModel extends model
|
||||
$data = fixer::input('post')
|
||||
->setDefault('client', 'svn')
|
||||
->setDefault('prefix', $repo->prefix)
|
||||
->setDefault('product', '')
|
||||
->setIF($this->post->path != $repo->path, 'synced', 0)
|
||||
->skipSpecial('path,client,account,password')
|
||||
->join('product', ',')
|
||||
|
||||
Reference in New Issue
Block a user