Ignore:
Timestamp:
Nov 8, 2010, 11:43:26 AM (13 years ago)
Author:
grum
Message:

fix bug:2019 - Personnal metadata are not correct
fix bug:2020 - Impossible to install plugin id it_IT language is activated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_pip.class.inc.php

    r6920 r7700  
    113113      'values' => array(),
    114114    );
    115     $sql="SELECT st.tagId, gn.name as gName, ut.numId, ut.name
     115    $sql="(SELECT st.tagId, gn.name as gName, ut.numId, ut.name, 'y' AS displayStatus
    116116          FROM ((".$this->tables['selected_tags']." st
    117117            LEFT JOIN ".$this->tables['groups']." gr
     
    123123          WHERE gn.lang='".$user['language']."'
    124124            AND st.groupId <> -1
    125           ORDER BY gr.order, st.order;";
     125          ORDER BY gr.order, st.order)
     126
     127          UNION
     128
     129          (SELECT DISTINCT ut3.tagId, '', pautd.value, '', 'n'
     130          FROM ((".$this->tables['selected_tags']." st2
     131            LEFT JOIN ".$this->tables['used_tags']." ut2 ON ut2.tagId = st2.tagId)
     132            LEFT JOIN ".$this->tables['user_tags_def']." pautd ON pautd.numId=ut2.numId)
     133            LEFT JOIN ".$this->tables['used_tags']." ut3 ON ut3.numId = pautd.value
     134          WHERE st2.tagId LIKE 'userDefined.%'
     135          AND pautd.type = 'M');";
     136
    126137    $result=pwg_query($sql);
    127138    if($result)
     
    172183    foreach($tagsList as $key => $tagProperties)
    173184    {
    174       $keyExist=array_key_exists($key, $picturesTags);
     185      $keyExist=array_key_exists($key, $picturesTags) & ($tagProperties['displayStatus']=='y');
    175186      $userDefined=preg_match('/^userDefined\./i', $key);
    176187
Note: See TracChangeset for help on using the changeset viewer.