Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Issue forks
colorbox-3183921
Commits
9af4f242
Commit
9af4f242
authored
Aug 30, 2013
by
grisendo
Browse files
Fixed Notice error in Views Field (when using different galleries)
parent
f27d1d22
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Drupal/colorbox/Plugin/views/field/Colorbox.php
View file @
9af4f242
...
...
@@ -178,7 +178,7 @@ If you would like to have the characters %5B and %5D please use the html entity
$width
=
$this
->
options
[
'width'
]
?
$this
->
options
[
'width'
]
:
''
;
$height
=
$this
->
options
[
'height'
]
?
$this
->
options
[
'height'
]
:
''
;
$gallery_id
=
!
empty
(
$this
->
options
[
'custom_gid'
])
?
$gallery
:
(
$this
->
options
[
'gid'
]
?
'gallery-'
.
$this
->
view
->
name
:
''
);
$gallery_id
=
!
empty
(
$this
->
options
[
'custom_gid'
])
?
$gallery
:
(
$this
->
options
[
'gid'
]
?
'gallery-'
.
$this
->
view
->
id
:
''
);
$link_text
=
$tokens
[
"[
{
$this
->
options
[
'trigger_field'
]
}
]"
];
$link_options
=
array
(
'html'
=>
TRUE
,
...
...
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