Skip to content

Commit

Permalink
Fixed issue #18242: Quick translation: end note not shown (#2556)
Browse files Browse the repository at this point in the history
* Fixed issue #18242: Quick translation: end note not shown

* Fixed issue #18242: Quick translation: end note not shown

* Fixed issue #18242: Quick translation: end note not shown

Co-authored-by: encuestabizdevgit <devgit@encuesta.biz>
  • Loading branch information
gabrieljenik and encuestabizdevgit committed Aug 29, 2022
1 parent e56d10e commit bf127c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions application/controllers/admin/Translate.php
Expand Up @@ -244,9 +244,12 @@ private function displayUntranslatedFields($iSurveyID, $tolang, $baselang, $tab_
$gid = ($amTypeOptions["gid"] == true) ? $gid = $aRowfrom['gid'] : null;
$qid = ($amTypeOptions["qid"] == true) ? $qid = $aRowfrom['qid'] : null;

$textform_length = strlen(trim($textfrom));
$textfrom_length = strlen(trim($textfrom));
$textfrom2_length = $associated ? strlen(trim($textfrom2)) : 0;

$all_fields_empty = !($textform_length > 0);
if ($textfrom_length > 0 || $textfrom2_length > 0) {
$all_fields_empty = false;
}

$aData = array_merge($aData, array(
'textfrom' => $this->cleanup($textfrom, array()),
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/translate/translatefields_view.php
@@ -1,4 +1,4 @@
<?php if (strlen(trim((string)$textfrom)) > 0) : ?>
<?php if (strlen(trim((string)$textfrom)) > 0 || strlen(trim((string)$textfrom2)) > 0) : ?>
<?php if (extension_loaded('tidy')) : ?>
<?=tidy_repair_string($translateFields,array(),'utf8')?>
<?php else:?>
Expand Down

0 comments on commit bf127c2

Please sign in to comment.