* Fix bug#11101.

This commit is contained in:
leiyong
2021-04-01 12:49:10 +03:00
parent 690d4aa32a
commit cb2f4c314d
2 changed files with 7 additions and 2 deletions
+4 -2
View File
@@ -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';
+3
View File
@@ -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', ',')