MantisBT - Piwigo
View Issue Details
0002892Piwigoweb APIpublic2013.04.19 22:142013.04.19 22:22
plg 
plg 
normalminoralways
closedfixed 
2.5.0 
2.5.12.5.1 
any
Apache 1.3.x
0002892: [pwg.images.setInfo] empty tag_ids input parameter produces errors
with define multiple_value_mode=replace :

Warning: [mysql error 1048] Column \'tag_id\' cannot be null

INSERT  INTO piwigo_image_tag
  (image_id,tag_id)
  VALUES(\'74\',NULL) in .../include/dblayer/functions_mysqli.inc.php on line 834


or define multiple_value_mode=append :

Warning: [mysql error 1064] You have an error in your SQL syntax; check the manual that corresponds to 
your MySQL server version for the right syntax to use near \')\' at line 4

DELETE
  FROM piwigo_image_tag
  WHERE image_id IN (74)
    AND tag_id IN ()
; in .../include/dblayer/functions_mysqli.inc.php on line 834
Warning: [mysql error 1048] Column \'tag_id\' cannot be null

INSERT  INTO piwigo_image_tag
  (image_id,tag_id)
  VALUES(\'74\',NULL) in .../include/dblayer/functions_mysqli.inc.php on line 834
No tags attached.
Issue History
2013.04.19 22:14plgNew Issue
2013.04.19 22:14plgStatusnew => assigned
2013.04.19 22:14plgAssigned To => plg
2013.04.19 22:14plgbrowser => any
2013.04.19 22:14plgWeb server => Apache 1.3.x
2013.04.19 22:18svnCheckin
2013.04.19 22:18svnNote Added: 0006934
2013.04.19 22:19svnCheckin
2013.04.19 22:19svnNote Added: 0006935
2013.04.19 22:22plgStatusassigned => closed
2013.04.19 22:22plgResolutionopen => fixed
2013.04.19 22:22plgFixed in Version => 2.5.1

Notes
(0006934)
svn   
2013.04.19 22:18   
[Subversion] r22301 by plg on branch 2.5

-----[Subversion commit log]----------------------------------------------------
bug 2892 fixed: no more error when tag_ids input parameter is empty (but
provided) on pwg.images.setInfo.
(0006935)
svn   
2013.04.19 22:19   
[Subversion] r22302 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r22301 from branch 2.5 to trunk

bug 2892 fixed: no more error when tag_ids input parameter is empty (but
provided) on pwg.images.setInfo.