* code for task #7939.
This commit is contained in:
@@ -342,6 +342,7 @@ class baseHTML
|
||||
*/
|
||||
static public function password($name, $value = "", $attrib = "")
|
||||
{
|
||||
if(strpos($attrib, 'autocomplete') === false) $attrib .= " autocomplete='off'";
|
||||
return "<input type='password' name='$name' id='$name' value='$value' $attrib />\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ class html extends baseHTML
|
||||
static public function a($href = '', $title = '', $target = "_self", $misc = '', $newline = true)
|
||||
{
|
||||
if(empty($target)) $target = '_self';
|
||||
if($target != '_self') $misc .= " target='$target'";
|
||||
if($target != '_self') $misc .= " target='$target'";
|
||||
if($target == '_blank') $misc .= " rel='noopener noreferrer'";
|
||||
return parent::a($href, $title, $misc, $newline);
|
||||
}
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ class custom extends control
|
||||
}
|
||||
}
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('custom', 'set', "module=$module&field=$field&lang=" . str_replace('-', '_', $lang))));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('custom', 'set', "module=$module&field=$field&lang=" . str_replace('-', '_', isset($this->config->langs[$lang]) ? $lang : 'all'))));
|
||||
}
|
||||
|
||||
/* Check whether the current language has been customized. */
|
||||
|
||||
@@ -324,7 +324,7 @@ class doc extends control
|
||||
if(!empty($files)) $fileAction = $this->lang->addFiles . join(',', $files) . "\n" ;
|
||||
$this->action->create('doc', $docID, 'Created', $fileAction);
|
||||
|
||||
$vars = "libID={$this->post->lib}&browseType=byModule&moduleID={$this->post->module}&orderBy=id_desc&from=$this->from";
|
||||
$vars = "libID=" . (int)$this->post->lib . "&browseType=byModule&moduleID=" . (int)$this->post->module . "&orderBy=id_desc&from=$this->from";
|
||||
$link = $this->createLink('doc', 'browse', $vars);
|
||||
if($this->app->getViewType() == 'xhtml') $link = $this->createLink('doc', 'view', "docID=$docID");
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $link));
|
||||
|
||||
@@ -195,6 +195,7 @@ class testcaseModel extends model
|
||||
->setIF($this->post->story != false, 'storyVersion', $this->loadModel('story')->getVersion((int)$this->post->story))
|
||||
->remove('steps,expects,files,labels,stepType,forceNotReview')
|
||||
->setDefault('story', 0)
|
||||
->cleanInt('story,product,branch,module')
|
||||
->join('stage', ',')
|
||||
->get();
|
||||
|
||||
@@ -664,6 +665,7 @@ class testcaseModel extends model
|
||||
->join('stage', ',')
|
||||
->join('linkCase', ',')
|
||||
->setForce('status', $status)
|
||||
->cleanInt('story,product,branch,module')
|
||||
->remove('comment,steps,expects,files,labels,stepType')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user