* Fix bug.

This commit is contained in:
tanghucheng
2022-06-23 14:52:21 +08:00
parent 439f555e45
commit e30bd279bc
+6 -3
View File
@@ -120,10 +120,13 @@ class custom extends control
{
$postArray = fixer::input('post');
$keys = array();
foreach($postArray->data->keys as $key)
if(isset($postArray->data->keys))
{
if(in_array($key, $keys)) return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->custom->notice->repeatKey, $key)));;
$keys[] = $key;
foreach($postArray->data->keys as $key)
{
if(in_array($key, $keys)) return $this->send(array('result' => 'fail', 'message' => sprintf($this->lang->custom->notice->repeatKey, $key)));;
$keys[] = $key;
}
}
if($module == 'project' and $field == 'unitList')