fixes #2237 added a temporary parameter to pwg.images.setInfo

it's also adapted in the batch manager unit js file
This commit is contained in:
Linty
2024-11-05 18:20:42 +01:00
parent a6446be4be
commit bc0a4bb107
2 changed files with 17 additions and 2 deletions
+14
View File
@@ -2630,6 +2630,20 @@ SELECT *
);
}
}
// Temporary use of the batch manager's unit mode,
// not to be used by an external application,
// as this code bellow will be deleted when a tag selector is added.
if (isset($_REQUEST['tag_list']))
{
if (isset($params['tag_ids']))
{
return new PwgError(WS_ERR_INVALID_PARAM, 'Do not use tag_list and tag_ids at the same time.');
}
$tag_list = get_tag_ids($_REQUEST['tag_list']);
set_tags($tag_list, $params['image_id']);
}
invalidate_user_cache();
}