Fix: Queries with empty selections hadn't worked anymore
This commit is contained in:
parent
979199c442
commit
e17e385c41
1 changed files with 3 additions and 1 deletions
|
@ -846,7 +846,9 @@ class Item
|
||||||
*/
|
*/
|
||||||
private static function constructSelectFields(array $fields, array $selected)
|
private static function constructSelectFields(array $fields, array $selected)
|
||||||
{
|
{
|
||||||
$selected = array_merge($selected, ['internal-iid', 'internal-psid', 'internal-iaid', 'internal-network']);
|
if (!empty($selected)) {
|
||||||
|
$selected = array_merge($selected, ['internal-iid', 'internal-psid', 'internal-iaid', 'internal-network']);
|
||||||
|
}
|
||||||
|
|
||||||
if (in_array('verb', $selected)) {
|
if (in_array('verb', $selected)) {
|
||||||
$selected[] = 'internal-activity';
|
$selected[] = 'internal-activity';
|
||||||
|
|
Loading…
Reference in a new issue