* [bug#55273,done,0.5h] The field name for adding comments is 'actioncomment'.

This commit is contained in:
hufangzhou
2024-09-13 09:09:58 +08:00
committed by 王于听
parent 78968f89b6
commit a02cde56ee
+1 -1
View File
@@ -1542,7 +1542,7 @@ class actionModel extends model
$actionType = strtolower($actionType);
if(!isset($this->config->search->fields->{$objectType})) return false;
if(strpos($this->config->search->buildAction, ",{$actionType},") === false && empty($_POST['comment'])) return false;
if((strpos($this->config->search->buildAction, ",{$actionType},") === false && $actionType != 'commented' && empty($_POST['comment'])) || ($actionType == 'commented' && empty($_POST['actioncomment']))) return false;
if($actionType == 'deleted' || $actionType == 'erased') return $this->search->deleteIndex($objectType, $objectID);
$field = $this->config->search->fields->{$objectType};