mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
Allow text "all_no_acl" for globalCategories
This commit is contained in:
parent
8ed934269a
commit
c51dd5125d
@ -733,8 +733,19 @@ class Select extends Etemplate\Widget
|
|||||||
{
|
{
|
||||||
$categories = new Api\Categories($type5, $application);
|
$categories = new Api\Categories($type5, $application);
|
||||||
}
|
}
|
||||||
// Allow text for global
|
// Allow text "all_no_acl" for globalCategories
|
||||||
$globalCategories = $globalCategories && (strlen($globalCategories) > 1 ? $globalCategories === 'true' : (bool)$globalCategories);
|
switch($globalCategories)
|
||||||
|
{
|
||||||
|
case 'all_no_acl':
|
||||||
|
break;
|
||||||
|
case 'true':
|
||||||
|
case 'false':
|
||||||
|
$globalCategories = $globalCategories === 'true';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$globalCategories = (bool)$globalCategories;
|
||||||
|
break;
|
||||||
|
}
|
||||||
// we cast $type4 (parent) to int, to get default of 0 if omitted
|
// we cast $type4 (parent) to int, to get default of 0 if omitted
|
||||||
foreach((array)$categories->return_sorted_array(0, False, '', '', '', $globalCategories, (int)$parentCat, true) as $cat)
|
foreach((array)$categories->return_sorted_array(0, False, '', '', '', $globalCategories, (int)$parentCat, true) as $cat)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user