Skip to content

Commit

Permalink
Merge pull request ezsystems#88 from wizhippo/patch-1
Browse files Browse the repository at this point in the history
Fix postgresql sort columns must be in select
  • Loading branch information
emodric committed Feb 24, 2015
2 parents 82f5c32 + f1a3b48 commit 634aa52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions datatypes/eztags/eztags.php
Expand Up @@ -201,8 +201,7 @@ function store( $attribute )

//get existing tags for object attribute sorting by priority
$existingTagIDs = array();
$existingTags = $db->arrayQuery( "SELECT DISTINCT keyword_id FROM eztags_attribute_link WHERE objectattribute_id = $attributeID AND objectattribute_version = $attributeVersion ORDER BY priority ASC" );

$existingTags = $db->arrayQuery( "SELECT DISTINCT keyword_id, priority FROM eztags_attribute_link WHERE objectattribute_id = $attributeID AND objectattribute_version = $attributeVersion ORDER BY priority, keyword_id ASC" );
if ( is_array($existingTags ) )
{
foreach ( $existingTags as $t )
Expand Down

0 comments on commit 634aa52

Please sign in to comment.