details about the new input parameter position for pwg.categories.add

This commit is contained in:
plegall
2022-08-18 11:34:37 +02:00
parent c4208c2258
commit 352e256d41
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -576,7 +576,7 @@ function ws_categories_add($params, &$service)
global $conf;
if ($params["position"] != "")
if (!empty($params['position']) and in_array($params['position'], array('first','last')))
{
//TODO make persistent with user prefs
$conf['newcat_default_position'] = $params["position"];