Changeset 4444 for branches/2.0/ws.php


Ignore:
Timestamp:
Dec 7, 2009, 11:28:40 PM (14 years ago)
Author:
plg
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/ws.php

    r4345 r4444  
    290290        'maxValue' => $conf['available_permission_levels']
    291291        ),
     292      'replace_mode' => array('default' => false),
    292293      ),
    293294    'POST method only. Admin only
Note: See TracChangeset for help on using the changeset viewer.