Changeset 7677


Ignore:
Timestamp:
Nov 7, 2010, 5:11:39 PM (13 years ago)
Author:
grum
Message:

fix bug:2015 - Can't add a new personnal tag
fix bug:2017 - MySQL 5.1 incompatibility

Location:
extensions/AMetaData
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_ajax.php

    r7519 r7677  
    841841      elseif($selected=='n')
    842842      {
    843         $sql="DELETE FROM ".$this->tables['selected_tags']." st
     843        $sql="DELETE FROM ".$this->tables['selected_tags']."
    844844                USING ".$this->tables['used_tags']." ut
    845                   LEFT JOIN ".$this->tables['selected_tags']." st
    846                     ON ut.tagID = st.tagId
     845                  LEFT JOIN ".$this->tables['selected_tags']."
     846                    ON ut.tagID = ".$this->tables['selected_tags'].".tagId
    847847                WHERE ut.numId = $numId;";
    848848        pwg_query($sql);
     
    13711371        // add a new metadata
    13721372        $sql="INSERT INTO ".$this->tables['used_tags']."
    1373               VALUES ('', '".$properties['tagId']."', 'n', '".$properties['name']."', 0, '".$properties['name']."')";
     1373              VALUES ('', '".$properties['tagId']."', 'n', '".$properties['name']."', 0, '".$properties['name']."', 'n')";
    13741374        $result=pwg_query($sql);
    13751375        $id=pwg_db_insert_id();
  • extensions/AMetaData/amd_version.inc.php

    r7569 r7677  
    1717  if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    1818
    19   define('AMD_VERSION',  '0.5.5');
    20   define('AMD_VERSION2', '00.05.05');
     19  define('AMD_VERSION',  '0.5.6');
     20  define('AMD_VERSION2', '00.05.06');
    2121  define('AMD_GPC_NEEDED', '3.3.2');
    2222?>
  • extensions/AMetaData/main.inc.php

    r7569 r7677  
    22/*
    33Plugin Name: Advanced MetaData
    4 Version: 0.5.5
     4Version: 0.5.6
    55Description: An advanced metadata manager
    66Plugin URI: http://piwigo.org/ext/extension_view.php?eid=364
     
    179179|         |            |   . On Canon file, debug informations are displayed
    180180|         |            |
    181 |         |            |
    182 |         |            |
    183 |         |            |
     181| 0.5.6   | 2010-11-07 | * mantis bug:2015
     182|         |            |   . Can't add a new personnal tag
     183|         |            |
     184|         |            | * mantis bug:2017
     185|         |            |   . MySQL 5.1 incompatibility
    184186|         |            |
    185187|         |            |
Note: See TracChangeset for help on using the changeset viewer.