Commit Graph

28 Commits

Author SHA1 Message Date
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
8957961015 Fixed issue #437, filtering DateTime
Applying a filter on a DateTime column in an aggregation was causing
an uncaught error to occur and prevent the page being rendered at
all. Fortunately, this turned out to be a very simple issue to resolve.
2022-04-14 19:53:31 +01: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
d6d97f6064 Automatic coding style fixes 2020-04-14 14:22:27 +02:00
d8bfcd0367 Add missing translations 2019-09-30 16:38:45 +02:00
733fd33b72 Clearer names of date constraints 2019-09-18 13:46:52 +02:00
218490cffe Add past and future date(time) constraints 2019-09-17 22:13:44 +02:00
16daff3da5 Fix default datetime format
fixes #427
2019-04-03 16:54:24 +02:00
b80ca5e1e3 fix: make html5 datetime picker actually work
The datetime picker expects and produces dates / time pairs separated by
the "T" character, not a space. Further, it does not handle seconds at
all.

Therefore, we have to provide the timestamp in the input field separated
by a "T" and for consistency drop seconds altogether. Hence, it
becomes necessary to replace the "T" by a space again before providing it to jQuery
date picker fallback.

Further, we have to actually parse the "T" when validating the
timestamps we receive from the user.
2018-01-26 12:20:51 +01:00
34f483db19 use HTML5 date and datetime-local inputs with jquery as fallback, make the year easier to edit 2018-01-04 01:57:12 +01:00
3e7a5b3c23 Refactor to use buildAttributes -> cleaner code 2017-06-14 10:22:36 +02:00
ee9831356b Fix multiple inputs in one label: it's invalid 🙅
Multiple inputs within a single label in invalid HTML. This bug can not
only occur in multi-fields but also in plugin-provided single fields
which may contain multiple input-fields which are then only combined by
javascript.

Thus, we provide an id which every type can assign to the edit-field
best suited. For multi-types this is usually the new-input-template.

Fixes #292
2017-06-14 10:22:36 +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
e9259fa1a4 feat: let %lastupdated% refer to newest page rev
This reimplements 1f4dc0b95b.
This time correctly extending the class DateTime which is actually used
in Search::findColumn()

SPR-622
2016-11-22 14:29:58 +01:00
1707798d17 fix: Set right class on datetime entry for widget
With this the correct class will be set in all the scenarios (page-edit,
inline, lookup). Then changing the date via the datepicker will always
generate time-template as defined in script/EntryEditor.js

Fixes #204
2016-11-10 12:12:49 +01:00
d4232f8573 last modified dates should be displayed in local time 2016-08-25 15:31:28 +02:00
9d461ec6b1 Merge pull request #166 from cosmocode/bug140
Always use raw values for editors
2016-08-24 17:40:10 +02:00
c0230d2cff Always use raw values for editors
This is another attempt to fix #140. The valueEditor() and
multiValueEditor() now always expect raw values to be passed. The Value
class was adjusted accordingly. It now allows to set the raw value
(which is what we get from POST). If done, the Value object is treated
as a rawonly Value that will throw an exception when you try to access
value or displayvalue.
2016-08-24 11:10:37 +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
b92072dd59 let DateTime handle rev column on its own
This fixes filtering for %lastupdate%
2016-07-28 12:27:14 +02:00
e45a1451cb adjust for changes in master 2016-07-28 12:12:03 +02:00
7df82d6ae5 add the default to overridden constructor 2016-07-27 18:07:30 +02:00
64cf7cc697 Initialize DateType with dformat configuration
We're not using strftime in our Date and DateTime types because we want
to be able to represent dates outside the unix timestamp range.

To reuse the strftime format string we have in DokuWiki it needs to be
converted to a date() compatible format. The class added for that could
ultimately be moved to a third party project.
2016-07-27 17:58:59 +02:00
4978faf121 added DateTime tests 2016-07-27 10:29:33 +02:00
cadfc3ccf1 implement a %lastupdated% column #122 2016-07-26 17:31:07 +02:00
4a2883e0ee introduced DateTime Type
This is similar to Date but also accepts a time. Only uses a Date
picker, no time picker as we currently have none available.
2016-07-26 17:09:02 +02:00