0280da9a | 11-Apr-2021 |
Frieder Schrempf <dev@fris.de> |
Fix bug in struct filter variable evaluation
When a search contains a struct variable expression for filtering and the variable references a schema that is not assigned to the current search but has
Fix bug in struct filter variable evaluation
When a search contains a struct variable expression for filtering and the variable references a schema that is not assigned to the current search but has a column with the same name like one from the assigned schemas, the evaluation of the variable doesn't return the correct value.
This patch fixes the bug by ensuring that findColumn() returns false in case the requested schema wasn't found within the assigned schemas.
To make sure the behavior of other callers of findColumn() remains the same, we introduce a parameter 'strict' to trigger this new behavior in applyFilterVarsStruct().
There is also a unit test added in a separate commit that explicitely checks this case.
Signed-off-by: Frieder Schrempf <dev@fris.de>
show more ...
|
844a4f01 | 28-Mar-2021 |
Frieder Schrempf <dev@fris.de> |
Add an event for custom aggregation table rendering
In order to let plugins provide custom rendering of aggregation data, we add an event PLUGIN_STRUCT_RENDER_AGGREGATION_TABLE.
Signed-off-by: Frie
Add an event for custom aggregation table rendering
In order to let plugins provide custom rendering of aggregation data, we add an event PLUGIN_STRUCT_RENDER_AGGREGATION_TABLE.
Signed-off-by: Frieder Schrempf <dev@fris.de>
show more ...
|
208bb3f3 | 08-Mar-2021 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Fix code style violations |
34ea6e10 | 16-Feb-2021 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Eliminate warnings in PHP 8 |
25e910de | 31-Jan-2021 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Never load serial data in page editor
fixes #535
Previously the page data editor pulled anything from the database associated with the current page id and having rev <= current timestamp. This incl
Never load serial data in page editor
fixes #535
Previously the page data editor pulled anything from the database associated with the current page id and having rev <= current timestamp. This included serial data with rev = 0, which are now excluded.
show more ...
|
81349283 | 15-Dec-2020 |
larsmei <lars.meindl@googlemail.com> |
added spaces around the IN operator |
58cb2b19 | 01-Nov-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Only update page metadata on new revision
Implements a basic comparison of page revisions before update. We used to write to the database on every rendering just because PARSER_METADATA_RENDER is th
Only update page metadata on new revision
Implements a basic comparison of page revisions before update. We used to write to the database on every rendering just because PARSER_METADATA_RENDER is the only event that supplies all the required metadata. An additional database query is better than the redundant save.
Fixes #528
show more ...
|
9e5ba324 | 14-Oct-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Keep serial data intact when revisioning page data with the same schema and id |
a09ff24a | 26-Aug-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Remove deselected data in multi fields (serial and global)
Because we were replacing data on update, old values were not deleted. Now we explicitly clear them before saving new data. |
f6cf0d85 | 20-Jul-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Simpler check for an empty string |
d680cb37 | 20-Jul-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Allow deleting all values from a multi field in inline editor
Fixes #439
Puts a mechanism in place to delete any previous values when saving an empty multi field. This does NOT apply to page data,
Allow deleting all values from a multi field in inline editor
Fixes #439
Puts a mechanism in place to delete any previous values when saving an empty multi field. This does NOT apply to page data, which is versioned and should not be deleted on update.
show more ...
|
308cc83f | 14-May-2020 |
Andreas Gohr <andi@splitbrain.org> |
refactoring names
To avoid confusion with the Lookup type, the three different ways of accessing a schema have now the following names:
* page data - for revisioned struct data attached to a page *
refactoring names
To avoid confusion with the Lookup type, the three different ways of accessing a schema have now the following names:
* page data - for revisioned struct data attached to a page * serial data - for an unrevisioned list of struct data attached to a page * global data - for an unrevisioned list of struct data not attached to any page (formaly known as lookup schema)
The editor mechanism used for serial and global data is now called AggregationEditor
Some reference to lookup schemas is still in the bureaucracy support part.
show more ...
|
ad86a824 | 11-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Create pages when importing serial data |
4cd5cc28 | 07-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Introduce new factory methods for data access and deprecate old ones |
fabc08cb | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Fix code style violations |
5e8c6cf6 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Replace hand-crafted SQL queries in CSV import with calls to AccessTable* save methods |
e3104939 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Add forgotten grouping column to search queries
This should have been done long ago when rid was introduced |
984b4e7b | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
More sensitive check for which version of schema should be loaded |
28d21c10 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Try not to duplicate data saving methods |
69d92b7a | 04-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Prepare to use unified schema in admin CSV export/import |
1fd66b06 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Fix code style violations |
47a35992 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Replace hand-crafted SQL queries in CSV import with calls to AccessTable* save methods |
a14f6a1d | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
Add forgotten grouping column to search queries
This should have been done long ago when rid was introduced |
45698777 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
More sensitive check for which version of schema should be loaded |
4e4edb41 | 05-May-2020 |
Anna Dabrowska <dabrowska@cosmocode.de> |
WIP Try not to duplicate data saving methods |