Skip to content

Commit

Permalink
#4148 Build-in API support (comments form)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Jan 18, 2023
1 parent 4d7a490 commit e41277e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/base/general/classes/BxBaseModGeneralModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -3461,7 +3461,7 @@ protected function _entityComments ($sObject, $iId = 0)
if (bx_is_api())
return [
['id' => 1, 'type' => 'browse', 'data' => $oCmts->getCommentsBlockAPI(array(), array('in_designbox' => false, 'show_empty' => false))],
['id' => 2, 'type' => 'form', 'data' => $oCmts->_getFormObject()->getCodeAPI(), 'request' => ['url' => '/cmts.php', 'immutable' => true]]
['id' => 2, 'type' => 'form', 'data' => $oCmts->getFormObject()->getCodeAPI(), 'request' => ['url' => '/cmts.php', 'immutable' => true]]
];

return $oCmts->getCommentsBlock(array(), array('in_designbox' => false, 'show_empty' => false));
Expand Down

0 comments on commit e41277e

Please sign in to comment.