* [bug#55273,done,0.5h] The field name for adding comments is 'actioncomment'.
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user