Skip to content

Commit

Permalink
Fixed issue: Notice for filter search in encrypted values (Participan…
Browse files Browse the repository at this point in the history
…t gridview)
  • Loading branch information
eddylackmann committed Jan 9, 2020
1 parent 3491ff7 commit ebd1e04
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions application/models/LSActiveRecord.php
Expand Up @@ -436,13 +436,10 @@ public function decryptEncryptAttributes($action = 'decrypt')
*/
public function setEncryptedAttributeLabel(int $surveyId = 0, string $className, string $attributeName)
{
$encryptedAttributes = $this->getAllEncryptedAttributes($surveyId, $className);
$encrptedAttributes = $this->getAllEncryptedAttributes($surveyId, $className);
$encryptionNotice = gT("This field is encrypted and can only be searched by exact match. Please enter the exact value you are looking for.");
if(isset($encryptedAttributes)){
if (in_array($attributeName, $encryptedAttributes)) {
return ' <span data-toggle="tooltip" title="' . $encryptionNotice . '" class="fa fa-key text-success"></span>';
}
if (in_array($attributeName, $encrptedAttributes)) {
return ' <span data-toggle="tooltip" title="' . $encryptionNotice . '" class="fa fa-key text-success" style="font-size:12px"></span>';
}

}
}

0 comments on commit ebd1e04

Please sign in to comment.