History log of /plugin/struct/types/Lookup.php (Results 1 – 21 of 21)
Revision Date Author Comments
# 24eec657 12-May-2025 Andreas Gohr <gohr@cosmocode.de>

combobox representation for dropdowns and lookups


# ba7f5789 06-Feb-2024 Anna Dabrowska <dabrowska@cosmocode.de>

No direct search execution


# cdd16494 18-Jan-2024 Anna Dabrowska <dabrowska@cosmocode.de>

New SQLite function to decode struct JSON


# 5e29103a 11-Dec-2023 annda <annda@users.noreply.github.com>

�� Automatic code style fixes


# 7234bfb1 13-Sep-2023 splitbrain <splitbrain@users.noreply.github.com>

�� Automatic code style fixes


# 17a3a578 13-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Manual code style adjustments


# 0549dcc5 13-Jan-2022 Andreas Gohr <andi@splitbrain.org>

PHP code sniffer autofixes


# 565b4cc1 16-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Add wrapper function for json_decode()


# fbbae12a 14-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Lookup types use a composite id

JSON encoded pid and rid, together with lastst = 1, offer a unique identifier for fetching all types of referenced data


# d6d97f60 09-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Automatic coding style fixes


# 7f803aa8 07-Apr-2020 Anna Dabrowska <dabrowska@cosmocode.de>

Fix data access for lookup types


# 6781c68d 06-Jun-2019 Szymon Olewniczak <solewniczak@rid.pl>

change prefix from Abstract to Auto


# 2096ed95 30-May-2019 Szymon Olewniczak <solewniczak@rid.pl>

Prefix Summary type with "Abstract" to hide it in Schema Editor.

Fixes #451


# 88b58a21 30-Mar-2018 Szymon Olewniczak <solewniczak@rid.pl>

This commit adds '%lastsummary%' special column for page schemas. The column contains the summary of last page revision.


# 10b11cc5 11-Jan-2018 Szymon Olewniczak <solewniczak@rid.pl>

special columns for lookup select fields

I'm not quite sure if it's more feature or bugfix but i think that special columns of struct schemas should also be available for struct lookup field.


# 7717c082 14-Mar-2017 Michael Große <grosse@cosmocode.de>

Add compareValue() abstract base type & lookup

This fixes a bug, that caused the $STRUCT.table.field$ filter syntax to
be broken for lookup fields. Struct was comparing the row-id of the
argument-c

Add compareValue() abstract base type & lookup

This fixes a bug, that caused the $STRUCT.table.field$ filter syntax to
be broken for lookup fields. Struct was comparing the row-id of the
argument-column to the raw value of the referenced column at the
filtered lookup.

There were multiple options to fix this bug:
1. Add a new function to the AbstractBaseType() that return raw value by
default (this is the approach implemented by this commit)
2. Add a function to the lookup type only and use introspection to call
it if it exists.
3. Do not compare the values in the referenced columns, but compare only
the row-ids

The problem with approach 3: It is not possible to compare such
lookup-column to any other column except lookups and this is not what we
want.
Approaches 1 and 2 have different trade-offs on where additional
code/complexity is created. I decided for approach 1 because it is the
cleaner overall approach and we might want to use this functionality for future
types as well.

SPR-875

show more ...


# af993d55 03-Jan-2017 Michael Grosse <grosse@cosmocode.de>

fix: stop OR filters causing problems

The filters coming from syntax should be grouped together in a subgroup
to that OR-filters cannot undo the filters on latest=1 etc.

Since we cannot know in the

fix: stop OR filters causing problems

The filters coming from syntax should be grouped together in a subgroup
to that OR-filters cannot undo the filters on latest=1 etc.

Since we cannot know in the filter function whether there is already a
subgroup for us to use or which to use, the solution was to give the
correct subgroup to the filter function directly.

Instead of adding another parameter to the already long list of
parameters for that function, I have chosen to give the
QueryBuilderWhere a reference back to the original QueryBuilder.

show more ...


# d329f04c 17-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

another fix for multi value dropdowns

This had been only partly fixed in a3f28bd5749019a23c6a298391781f8480629536


# dd6f0fd7 16-Nov-2016 Andreas Gohr <gohr@cosmocode.de>

slight refactoring in Lookup

this makes it easier to reuse this type later on


# f256f53f 11-Oct-2016 Andreas Gohr <gohr@cosmocode.de>

don't use static but class member


# 9b8dc0b2 11-Oct-2016 Andreas Gohr <gohr@cosmocode.de>

Lookup Dropdowns are now handled separately

Dropdowns are now back to being simple value pickers. To select data
from a different Schema the Lookup type was introduced. This makes the
code a bit sim

Lookup Dropdowns are now handled separately

Dropdowns are now back to being simple value pickers. To select data
from a different Schema the Lookup type was introduced. This makes the
code a bit simpler.

Users who used the Dropdown type to reference schemas will need to
reconfigure their schema to make use of the Lookup type instead.

The Lookup type now handles self references (fixes #171) and references
to page schemas correctly.

show more ...