Permalink
Browse files

BUG - Order of getAllFieldValue function

  • Loading branch information...
graredcr committed May 7, 2016
1 parent 0cc6da9 commit c1cf3fd77eb39204d530cf5e9042156f4726c347
Showing with 1 addition and 1 deletion.
  1. +1 −1 site/helpers/fieldattach.php
@@ -1051,7 +1051,7 @@ static function getAllFieldValue($articleid, $category = false)
global $globalreturn ;
$db = JFactory::getDBO( );
if(!$category){
$query = 'SELECT b.id, b.type FROM #__fieldsattach_values as a INNER JOIN #__fieldsattach as b ON b.id = a.fieldsid WHERE (b.language="'. JRequest::getVar("language", "*").'" OR b.language="*" ) AND a.articleid= '.$articleid;
$query = 'SELECT b.id, b.type FROM #__fieldsattach_values as a INNER JOIN #__fieldsattach as b ON b.id = a.fieldsid WHERE (b.language="'. JRequest::getVar("language", "*").'" OR b.language="*" ) AND a.articleid= '.$articleid.' ORDER BY b.ordering ';
}else{
// $query = 'SELECT a.id, b.type FROM #__fieldsattach_categories_values as a INNER JOIN #__fieldsattach as b ON b.id = a.fieldsid WHERE a (b.language="'. JRequest::getVar("language", "*").'" OR b.language="*" ) AND a.catid= '.$articleid;
}

0 comments on commit c1cf3fd

Please sign in to comment.