aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2009-12-07 22:30:02 +0000
committerplegall <plg@piwigo.org>2009-12-07 22:30:02 +0000
commit17dd6ed3ae9fbe6c0d328adb5c0b7fad6c111474 (patch)
tree85eb58e637396c7511bdf01773a13ddb52403ab4 /ws.php
parent8d75d404daa81710033d3c85ce7e810a26e7c29c (diff)
merge r4444 from branch 2.0 to trunk
feature 1312 added: pwg.images.setInfo can replace multiple values propreties (tags/categories). The primary condition is to provide "tag_ids" and/or "categories" input parameters, ie pwg.images.set won't create emptiness. You can reduce the set of tags/categories but not remove all tags/categories. bug 1277 fixed: with a stronger algorithm for adding/replacing categories, we now avoid to recreate an existing image_category association. When a remote client calls pwg.images.setInfo, Piwigo returns an error 500 if: 1. the "categories" parameter is malformed (no numeric id inside) 2. one of the input categories does not exist at database level. git-svn-id: http://piwigo.org/svn/trunk@4445 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r--ws.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index c2791f3c1..839df7e0d 100644
--- a/ws.php
+++ b/ws.php
@@ -289,6 +289,7 @@ function ws_addDefaultMethods( $arr )
'default' => 0,
'maxValue' => $conf['available_permission_levels']
),
+ 'replace_mode' => array('default' => false),
),
'POST method only. Admin only
<br><b>categories</b> is a string list "category_id[,rank];category_id[,rank]" The rank is optional and is equivalent to "auto" if not given.'