39 Commits

Author SHA1 Message Date
f0be527760 Add COLLATE NOCASE to sort queries
Fixes #616
2023-11-15 20:24:29 +01:00
45c5f0a924 Remove duplicated code 2023-11-15 17:20:05 +01:00
996125f59d Page autocomplete: catch invalid regex 2023-11-15 16:51:22 +01:00
9c075503fe Page autocomplete: new option 'filter' instead of old 'namespace' and 'postfix' 2023-11-15 16:33:23 +01:00
c0f1a2d1ad Improve autocomplete search for pages
Fixes #579 special characters in ids
Implements #593 and #622 flexibility in namespaces via regex
2023-11-14 18:47:34 +01:00
7fe2cdf28c apply #670 and manually cleanup afterwards
fixes some failing tests
uses sexplode over array_pad
reformats multiline arrays
2023-09-13 13:28:04 +02:00
7234bfb14e 🤖 Automatic code style fixes 2023-09-13 09:45:56 +00:00
460e822f15 code style fixes 2023-04-06 08:47:33 +02:00
6a819106d9 more test and deprecation fixes 2023-04-05 13:39:15 +02:00
1ca21e1738 Multiple fixes for PHP 8 (#600) 2022-03-31 13:06:54 +02:00
0549dcc5bc PHP code sniffer autofixes 2022-01-13 14:50:12 +01:00
9dc9943d76 Always display page ids in %pageid% columns
Fixes #504
2020-11-17 11:10:20 +01:00
565b4cc172 Add wrapper function for json_decode() 2020-04-16 12:49:17 +02:00
d6d97f6064 Automatic coding style fixes 2020-04-14 14:22:27 +02:00
af993d55de 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.
2017-01-03 15:30:46 +01:00
faa6f42c74 fix: ensure that displayValue of page is never empty
This could have been the case when the page is non-existent and has
never existed or is not a clean pageid due to a changed type of the
column.
2016-12-07 14:55:43 +01:00
eeac4e774a fix: keep page fragments
Fixes #196
2016-11-10 13:42:50 +01:00
0e72ef507e renamed JSON to STRUCT_JSON. fixes #157 2016-10-10 16:59:01 +02:00
f948eccf07 Fix ignored page autocomplete postfix
Closes #180, Fixes SPR-633
2016-09-23 17:09:16 +02:00
dd6a2b7167 Merge branch 'lookups' into validationrefactor
* lookups:
  test translation feature
  implement rendering via sub type in Dropdown
  fix displayValue for looked up type, more tests
  fixed constructor signature
  first test for new Dropdown features
  adjusted tests for renamed aliases
  Add Lookup Support to Dropdown
  column aliases need to differ from real column names
  use display value as default renderer
  introduces getDisplayValue
2016-08-24 10:17:34 +02:00
23169abe6c Validation should happen on raw value
This just renames the parameter to make this more clear
2016-08-23 17:43:27 +02:00
5241ca302c introduces getDisplayValue
A way to represent a complex type as a single non-complex type. Usually
this is the same as the rawValue.
2016-08-15 14:50:41 +02:00
694968d688 when Page uses titles, sorting should use title #146 2016-08-09 16:20:29 +02:00
94603e4256 show full ID when usetitles is on #133 2016-07-26 13:58:14 +02:00
fab65495fb search in pageid as well as in title. fixes #130 2016-07-21 16:35:24 +02:00
e7ee2b64be introduce Type::rawValue(). fixes #131 2016-07-21 16:16:46 +02:00
7b243b8dcf fixed title select when title is unknown, adds test 2016-07-20 14:25:35 +02:00
7da1a0fd3a Merge branch 'regexfilter' into querybuilder
This also changes where comparators are checked

* regexfilter:
  reverted bad change caused by outdated IDEA index
  first go at regexp filters
2016-07-20 12:31:21 +02:00
85716d3770 use usetitles config in autocompletion 2016-07-20 11:39:22 +02:00
a827267c1f make titles actually work for the page type
This needs tests
2016-07-20 11:32:30 +02:00
06bdb2c288 always save full pageids in the page type, namespace can be relative
The namespace and postfix config is now only available for the
autocompletion.

This makes comparisons more sane.

The namespace in the autocompletion config can be relative.
2016-07-12 13:53:54 +02:00
ba76620163 Use DokuWiki new autoloader for class files
No longer do we need to register our own autoloader. Namespace had to be
vendor prefixed.
2016-04-28 15:40:12 +02:00
7067bf5a95 add namespace and suffix config for Page type #67 2016-03-16 15:03:57 +01:00
16a4ba5be2 use autocompletion for pages too. implements #7 2016-03-01 16:32:23 +01:00
5c36a1f658 introduced new abstract type to streamline multiedit fields 2016-03-01 16:07:01 +01:00
f94f4c4faf fixed a bunch of minor things found by IntelliJ Idea 2016-02-25 12:19:53 +01:00
4d19af584d clear outdated configs
When the type of a field is changed, the old config is now dropped if
not supported by the new type.
2016-02-24 14:19:42 +01:00
797f0dfee0 types now use mode and renderer to output values
current types are completely renderer agnostic by reusing default
renderer methods
2016-02-15 17:05:09 +01:00
0234787d8d added Page type and use it for the %pageid% special column 2016-02-15 16:30:23 +01:00