Skip to content

Commit

Permalink
Merge pull request #42 from YetiForceCompany/developer
Browse files Browse the repository at this point in the history
Developer
  • Loading branch information
mariuszkrzaczkowski committed Nov 7, 2019
2 parents c249092 + 134ee29 commit 24beaad
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@
*.yarnclean text eol=lf
*.lock text eol=lf
*.yarn-integrity text eol=lf

.github/ export-ignore
tests/ export-ignore
.travis.yml export-ignore
.scrutinizer.yml export-ignore
.sensiolabs.yml export-ignore
4 changes: 2 additions & 2 deletions plugins/yetiforce/yetiforce.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ public function messageComposeHead($args)
chdir($this->rc->config->get('root_directory'));
$this->loadCurrentUser();

$subjectNumber = \App\Fields\Email::findRecordNumber($subject, $params['crmmodule']);
$recordNumber = \App\Fields\Email::findRecordNumber("[{$params['recordNumber']}]", $params['crmmodule']);
$subjectNumber = \App\Mail\RecordFinder::getRecordNumberFromString($subject, $params['crmmodule']);
$recordNumber = \App\Mail\RecordFinder::getRecordNumberFromString("[{$params['recordNumber']}]", $params['crmmodule']);
if (false === $subject || (false !== $subject && $subjectNumber !== $recordNumber)) {
$subject = "[{$params['recordNumber']}] $subject";
}
Expand Down
6 changes: 1 addition & 5 deletions program/steps/mail/autocomplete.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ if (strlen($search)) {
$addressBookFile = $RCMAIL->config->get('root_directory') . 'cache/addressBook/mails_' . $crmUserId . '.php';
if (is_file($addressBookFile)) {
include $addressBookFile;
foreach ($bookMails as $row) {
if (stripos($row, $search) !== false) {
$contacts[] = $row;
}
}
$contacts = preg_grep("/{$search}/i", $bookMails);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return [
'patch' => '2019.10.04',
'version' => '0.0.81'
'patch' => '2019.11.07',
'version' => '0.0.84'
];

0 comments on commit 24beaad

Please sign in to comment.