Jump to content


Lead Url issue in Marketing List and My Upcoming Meetings Calendar

lead marketing list meetings calendar

  • Please log in to reply
No replies to this topic

#1 sandro


    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationSanto André, SP, Brasil

Posted 25 February 2018 - 10:20 PM

Hi all,


There is an bug in the lead url, which occurs in both the marketing lists and the calendar of my upcoming meetings.
The url contains "contacts/default /details?id=xx", for example, where should be "leads/default/details?id=xx".
This bug can cause the change of lead status to contact in case of any change in the registry, bypassing the natural convert process.
One solution would be to change the "modules/contacts/controllers/DefaultController.php" file in the "actionDetails" function and append a check to know the status of the registry.
This check already occurs in the "actionDetails" function, but in the leads module.
So the code would look like this:
        public function actionDetails($id)
            $contact = static::getModelAndCatchNotFoundAndDisplayError('Contact', intval($id));
            if (LeadsUtil::isStateALead($contact->state))
                $urlParams = array('/leads/' . $this->getId() . '/details', 'id' => $contact->id);
                AuditEvent::logAuditEvent('ZurmoModule', ZurmoModule::AUDIT_EVENT_ITEM_VIEWED, array(strval($contact), 'ContactsModule'), $contact);
                if (KanbanUtil::isKanbanRequest() === false)
Thank you!

Linux2Business - Soluções Livres na Nuvem


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users