Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
recurring_events
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
recurring_events
Commits
22eee799
Commit
22eee799
authored
5 years ago
by
Owen Bush
Browse files
Options
Downloads
Patches
Plain Diff
Adding back two changes which got lost when merging consecutive dates
parent
6b4b38cb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recurring_events.views.inc
+16
-0
16 additions, 0 deletions
recurring_events.views.inc
src/Form/EventInstanceSettingsForm.php
+1
-1
1 addition, 1 deletion
src/Form/EventInstanceSettingsForm.php
with
17 additions
and
1 deletion
recurring_events.views.inc
+
16
−
0
View file @
22eee799
...
...
@@ -55,4 +55,20 @@ function recurring_events_views_data_alter(array &$data) {
if
(
!
$set
)
{
$data
[
'eventinstance_field_data'
][
'table'
][
'base'
][
'defaults'
][
'field'
]
=
'id'
;
}
// @todo Remove these declarations when
// https://www.drupal.org/project/drupal/issues/2489476 is resolved.
$data
[
'eventinstance_field_data'
][
'date__value'
][
'filter'
][
'id'
]
=
'datetime'
;
$data
[
'eventinstance_field_data'
][
'date__value'
][
'filter'
][
'field_name'
]
=
'date'
;
$data
[
'eventinstance_field_data'
][
'date__value'
][
'sort'
][
'id'
]
=
'datetime'
;
$data
[
'eventinstance_field_data'
][
'date__value'
][
'sort'
][
'field_name'
]
=
'date'
;
$data
[
'eventinstance_field_data'
][
'date__value'
][
'argument'
][
'id'
]
=
'datetime'
;
$data
[
'eventinstance_field_data'
][
'date__value'
][
'argument'
][
'field_name'
]
=
'date'
;
$data
[
'eventinstance_field_data'
][
'date__end_value'
][
'filter'
][
'id'
]
=
'datetime'
;
$data
[
'eventinstance_field_data'
][
'date__end_value'
][
'filter'
][
'field_name'
]
=
'date'
;
$data
[
'eventinstance_field_data'
][
'date__end_value'
][
'sort'
][
'id'
]
=
'datetime'
;
$data
[
'eventinstance_field_data'
][
'date__end_value'
][
'sort'
][
'field_name'
]
=
'date'
;
$data
[
'eventinstance_field_data'
][
'date__end_value'
][
'argument'
][
'id'
]
=
'datetime'
;
$data
[
'eventinstance_field_data'
][
'date__end_value'
][
'argument'
][
'field_name'
]
=
'date'
;
}
This diff is collapsed.
Click to expand it.
src/Form/EventInstanceSettingsForm.php
+
1
−
1
View file @
22eee799
...
...
@@ -60,7 +60,7 @@ class EventInstanceSettingsForm extends ConfigFormBase {
* Form definition array.
*/
public
function
buildForm
(
array
$form
,
FormStateInterface
$form_state
)
{
$config
=
$this
->
config
(
'recurring_events.event
series
.config'
);
$config
=
$this
->
config
(
'recurring_events.event
instance
.config'
);
$php_date_url
=
Url
::
fromUri
(
'https://secure.php.net/manual/en/function.date.php'
);
$php_date_link
=
Link
::
fromTextAndUrl
(
$this
->
t
(
'PHP date/time format'
),
$php_date_url
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment