Fix IManager::isFormattingFilteredObject()
This commit is contained in:
parent
25cbc17bec
commit
b5e40bc8f6
1 changed files with 4 additions and 5 deletions
|
@ -310,20 +310,19 @@ class ActivityManager implements IManager {
|
|||
|
||||
/**
|
||||
* @param string $type
|
||||
* @param int $id
|
||||
* @param string $id
|
||||
*/
|
||||
public function setFormattingObject($type, $id) {
|
||||
$this->formattingObjectType = $type;
|
||||
$this->formattingObjectId = $id;
|
||||
$this->formattingObjectId = (string) $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isFormattingFilteredObject() {
|
||||
return 'filter' === $this->request->getParam('filter')
|
||||
&& $this->formattingObjectType === $this->request->getParam('objecttype')
|
||||
&& $this->formattingObjectId === $this->request->getParam('objectid');
|
||||
return $this->formattingObjectType === $this->request->getParam('object_type')
|
||||
&& $this->formattingObjectId === $this->request->getParam('object_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue