mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
allow cats for planner to be an array
This commit is contained in:
parent
5524c3573c
commit
b052ffeb0a
@ -2124,7 +2124,7 @@ function open_edit(series)
|
|||||||
$cat2sort = array();
|
$cat2sort = array();
|
||||||
foreach((array)$this->categories->return_array('all',0,false,'','','',true) as $data)
|
foreach((array)$this->categories->return_array('all',0,false,'','','',true) as $data)
|
||||||
{
|
{
|
||||||
if ($data['parent'] == $this->cat_id || $data['id'] == $this->cat_id) // cat is a direct sub of $this->cat_id
|
if (in_array($data['parent'], (array)$this->cat_id) || in_array($data['id'], (array)$this->cat_id)) // cat is a direct sub of $this->cat_id
|
||||||
{
|
{
|
||||||
$cat2sort[$data['id']] = $data['id'];
|
$cat2sort[$data['id']] = $data['id'];
|
||||||
$sort2label[$data['id']] = stripslashes($data['name']);
|
$sort2label[$data['id']] = stripslashes($data['name']);
|
||||||
|
Loading…
Reference in New Issue
Block a user