or.php 633 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @param string|mixed[]|int $objectID
  4. * @param string|mixed[] $usersToAppended
  5. * @param string $type
  6. * @param string $params
  7. */
  8. public function getTeamMemberPairs($objectID, $type = 'project', $params = '', $usersToAppended = '')
  9. {
  10. if($type == 'execution')
  11. {
  12. $execution = $this->loadModel('execution')->getByID($objectID);
  13. if($execution->type == 'stage' and $this->app->rawModule == 'marketresearch')
  14. {
  15. $objectID = $execution->project;
  16. $type = 'project';
  17. }
  18. }
  19. return parent::getTeamMemberPairs($objectID, $type, $params, $usersToAppended);
  20. }