Skip to content
Snippets Groups Projects

allow sent mails to be filed correctly ref #142

Merged Alan Bell requested to merge alanbell/vtigercrm:sent_mails into master

sent things should work like inbound mails

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
417 421 * @param Email Address $email
418 422 * @return Array
419 423 */
420 public function lookupModuleRecordsWithEmail($module, $email) {
424 public function lookupModuleRecordsWithEmail($module, $emails) {
  • Prasad @prasad started a thread on commit 77c12342
  • 430 foreach($labelFields as $fieldname) {
    431 if(isset($qresult[$fieldname])) $labelValues[] = $qresult[$fieldname];
    428 foreach(explode(",",$emails) as $email){
    429 $query = $this->buildSearchQuery($module, $email, 'EMAIL');
    430 $qresults = vtws_query( $query, $currentUserModel );
    431 $describe = $this->ws_describe($module);
    432 $labelFields = explode(',', $describe['labelFields']);
    433 foreach($qresults as $qresult) {
    434 $labelValues = array();
    435 foreach($labelFields as $fieldname) {
    436 if(isset($qresult[$fieldname])) $labelValues[] = $qresult[$fieldname];
    437 }
    438 $ids = vtws_getIdComponents($qresult['id']);
    439 $results[] = array( 'wsid' => $qresult['id'], 'id' => $ids[1], 'label' => implode(' ', $labelValues));
    432 440 }
    433 441 $ids = vtws_getIdComponents($qresult['id']);
    Please register or sign in to reply
    Loading