Skip to content

Commit

Permalink
Dev Fixed query
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 17, 2018
1 parent bf28c34 commit 8d7a034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -3311,7 +3311,7 @@ function translateInsertansTags($newsid, $oldsid, $fieldnames)
} // end while qentry

# translate 'quotals_urldescrip' and 'quotals_url' INSERTANS tags in quota_languagesettings
$result = QuotaLanguageSetting::model()->with('quota',array('condition'=>'sid='.$newsid))->together()->findAll("q.id=qls.quotals_quota_id AND (quotals_urldescrip LIKE '%{$oldsid}X%' OR quotals_url LIKE '%{$oldsid}X%')");
$result = QuotaLanguageSetting::model()->with('quota',array('condition'=>'sid='.$newsid))->together()->findAll("(quotals_urldescrip LIKE '%{$oldsid}X%' OR quotals_url LIKE '%{$oldsid}X%')");
foreach ($result as $qentry) {
$urldescription = $qentry['quotals_urldescrip'];
$endurl = $qentry['quotals_url'];
Expand Down

0 comments on commit 8d7a034

Please sign in to comment.