Skip to content

Commit

Permalink
Merge pull request #2613 from phili67/phili67-meta-engine-update
Browse files Browse the repository at this point in the history
Meta search engine bug res
  • Loading branch information
phili67 committed Apr 16, 2024
2 parents 35c8129 + 7e35cf6 commit 3c6b3a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/EcclesiaCRM/Search/DepositSearchRes.php
Expand Up @@ -33,7 +33,7 @@ public function buildSearch(string $qry)
{
try {
$date = InputUtils::FilterDate($qry);
} catch (Exception $e) {
} catch (\Exception $e) {
$date = null;
}

Expand Down
2 changes: 1 addition & 1 deletion src/EcclesiaCRM/Search/PersonCustomSearchRes.php
Expand Up @@ -128,7 +128,7 @@ public function buildSearch(string $qry)

$elt = [
"id" => $per->getPerson()->getId(),
"img" => $per->getJPGPhotoDatas(),
"img" => $per->getPerson()->getJPGPhotoDatas(),
"searchresult" => '<a href="' . SystemURLs::getRootPath() . '/v2/people/person/view/' . $per->getPerson()->getId() . '" data-toggle="tooltip" data-placement="top" title="' . _('Edit') . '">' . OutputUtils::FormatFullName($per->getPerson()->getTitle(), $per->getPerson()->getFirstName(), $per->getPerson()->getMiddleName(), $per->getPerson()->getLastName(), $per->getPerson()->getSuffix(), 3) . '</a>',
"address" => (!SessionUser::getUser()->isSeePrivacyDataEnabled()) ? _('Private Data') : $address,
"type" => " " . _($this->getGlobalSearchType()),
Expand Down
Expand Up @@ -121,6 +121,7 @@ public function buildSearch(string $qry)
$elt = [
"id" => $per->getId(),
"img" => $per->getJPGPhotoDatas(),
"searchresult" => '<a href="' . SystemURLs::getRootPath() . '/v2/people/person/view/' . $per->getId() . '" data-toggle="tooltip" data-placement="top" title="' . _('Edit') . '">' . OutputUtils::FormatFullName($per->getTitle(), $per->getFirstName(), $per->getMiddleName(), $per->getLastName(), $per->getSuffix(), 3) . '</a>',
"address" => (!SessionUser::getUser()->isSeePrivacyDataEnabled())?_('Private Data'):$address,
"type" => " "._($this->getGlobalSearchType()),
"realType" => $this->getGlobalSearchType(),
Expand Down
5 changes: 3 additions & 2 deletions src/EcclesiaCRM/Search/PledgeSearchRes.php
Expand Up @@ -58,15 +58,16 @@ public function buildSearch(string $qry)
$id=1;

foreach ($Pledges as $Pledge) {
$uri = SystemURLs::getRootPath() . "/v2/deposit/pledge/editor/GroupKey/".$Pledge->getGroupkey()."/v2-deposit-slipeditor-" . $Pledge->getDepositId();
if ( $this->isQuickSearch() ) {
$elt = ['id' => 'pledges-' . $id++,
'text' => $Pledge->getFamily()->getName() . " (" . _("Deposit") . " #" . $Pledge->getDepositId() . ")",
'uri' => SystemURLs::getRootPath() . "/v2/deposit/pledge/editor/GroupKey/".$Pledge->getGroupkey()."/v2-deposit-slipeditor-" . $Pledge->getDepositId()];
'uri' => $uri];
} else {
if (!is_null($Pledge->getDepositId())) {
$res = "";
if (SessionUser::getUser()->isShowCartEnabled()) {
$res = '<a href="' . $elt['uri'] . '" data-toggle="tooltip" data-placement="top" title="' . _('Edit') . '">';
$res = '<a href="' . $uri . '" data-toggle="tooltip" data-placement="top" title="' . _('Edit') . '">';
}

$res .= '<span class="fa-stack">'
Expand Down

0 comments on commit 3c6b3a6

Please sign in to comment.