fixes #2007 no longer possible to update a filteredSearch

* Piwigo will create a new search for any modification in the filters
* we keep the "origin" of the new search with piwigo_search.forked_from field
This commit is contained in:
plegall
2023-09-27 16:30:05 +02:00
parent 61492d092e
commit fdd2177e78
5 changed files with 38 additions and 50 deletions
+6 -3
View File
@@ -1369,10 +1369,13 @@ enabled_high, registration_date, registration_date_string, registration_date_sin
);
$service->addMethod(
'pwg.images.filteredSearch.update',
'ws_images_filteredSearch_update',
'pwg.images.filteredSearch.create',
'ws_images_filteredSearch_create',
array(
'search_id' => array(),
'search_id' => array(
'flags' => WS_PARAM_OPTIONAL,
'info' => 'prior search_id (or search_key), if any',
),
'allwords' => array(
'flags' => WS_PARAM_OPTIONAL,
'info' => 'query to search by words',