Fix: Queries with empty selections hadn't worked anymore
This commit is contained in:
parent
979199c442
commit
e17e385c41
|
@ -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