Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a41da4e3
Commit
a41da4e3
authored
Nov 04, 2012
by
catch
Browse files
Issue
#1822384
by Hanspolo: Don't replace ->extra on the JoinPlugin with adjusted.
parent
4e1287e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/views/lib/Drupal/views/Plugin/views/join/JoinPluginBase.php
View file @
a41da4e3
...
...
@@ -165,7 +165,7 @@ public function __construct(array $configuration, $plugin_id, DiscoveryInterface
}
if
(
isset
(
$configuration
[
'adjusted'
]))
{
$this
->
extra
=
$configuration
[
'adjusted'
];
$this
->
adjusted
=
$configuration
[
'adjusted'
];
}
$this
->
extraOperator
=
strtoupper
(
$configuration
[
'extra_operator'
]);
...
...
core/modules/views/lib/Drupal/views/Tests/Plugin/JoinTest.php
View file @
a41da4e3
...
...
@@ -88,9 +88,12 @@ public function testBasePlugin() {
'left_field'
=>
'uid'
,
'table'
=>
'users'
,
'field'
=>
'uid'
,
'adjusted'
=>
TRUE
,
);
$join
=
$this
->
manager
->
createInstance
(
'standard'
,
$configuration
);
$this
->
assertTrue
(
$join
instanceof
JoinPluginBase
,
'The correct join class got loaded.'
);
$this
->
assertNull
(
$join
->
extra
,
'The field extra was not overriden.'
);
$this
->
assertTrue
(
$join
->
adjusted
,
'The field adjusted was set correctly.'
);
// Build the actual join values and read them back from the dbtng query
// object.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment