Closed diderich closed 4 months ago
do you have any custom related modules?
This was my mistake. I had added a custom getDependentsListRel
handle in custom/modules/OSSEmployees/relations
and did not migrate it to V7.0.
By the way, here is my implementation, which allows to find Leads, Opportunities, Projects, ServiceContracts related to the employee:
/**
* OSSEmployees_GGetDependentsListRel_Relation class.
*/
class OSSEmployees_GetDependentsListRel_Relation extends \App\Relation\RelationAbstraction
{
/** {@inheritdoc} */
public function getRelationType(): int
{
return Vtiger_Relation_Model::RELATION_M2M;
}
/**
* {@inheritdoc}
*/
public function getQuery()
{
$this->relationModel->getQueryGenerator()
->addNativeCondition(['vtiger_crmentity.smownerid' => $this->relationModel->get('parentRecord')->get('assigned_user_id')]);
}
/**
* {@inheritdoc}
*/
public function delete(int $sourceRecordId, int $destinationRecordId): bool
{
return false;
}
/**
* {@inheritdoc}
*/
public function create(int $sourceRecordId, int $destinationRecordId): bool
{
return true;
}
/**
* {@inheritdoc}
*/
public function transfer(int $relatedRecordId, int $fromRecordId, int $toRecordId): bool
{
return false;
}
}
π bug report
βοΈ Describe the bug
I want to view the details of an employee record accessing the following link:
https://www.mysite.net/crm7/index.php?module=OSSEmployees&view=Detail&record=115&parent=198&mid=228
Rather than get the actual information, I get the following error message:
π₯ How to trigger the error
Steps to reproduce the behavior:
https://www.mysite.net/crm7/index.php?module=OSSEmployees&view=Detail&record=115&parent=198&mid=228
π Actual Behavior
π Expected Behavior
π· Testing
demo.yetiforce.com
.π· Screenshot of configuration
π PHP/Apache/Nginx/Browser/CRM Logs
There is no error in
cache/logs/errors.log
.π Your Environment
β Additional context
Add any other context about the problem here.
βοΈ Inform the community if you solve the problem