Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
6b9fbebc
Commit
6b9fbebc
authored
Jul 17, 2014
by
David Metzler
Browse files
Fix to menu based documents not passing paremeters properly in document
links.
parent
f45a2748
Changes
2
Hide whitespace changes
Inline
Side-by-side
FrxEditor.inc
View file @
6b9fbebc
...
...
@@ -1196,7 +1196,7 @@ class FrxEditor {
$r
=
$this
->
frxReport
;
$formats
=
$r
->
formats
?
$r
->
formats
:
array_filter
(
variable_get
(
'forena_doc_defaults'
,
array
()));
$parms
=
Frx
::
parm
s
(
);
$parms
=
Frx
::
Data
()
->
getContext
(
'
parm
'
);
foreach
(
$doctypes
as
$ext
)
{
if
(
array_search
(
$ext
,
$formats
)
!==
FALSE
)
{
$links
[]
=
array
(
'title'
=>
strtoupper
(
$ext
),
'href'
=>
$this
->
report_link
.
".
$ext
"
,
'query'
=>
$parms
);
...
...
forena.module
View file @
6b9fbebc
...
...
@@ -698,7 +698,7 @@ function forena_parameter_form($formid, &$form_state, $parameters, $attributes=
$list
=
array
();
}
if
(
isset
(
$menu_parms
[
$id
])
&&
$type
=
=
'
textfield
'
)
{
if
(
isset
(
$menu_parms
[
$id
])
&&
$type
!
=
'
hidden
'
)
{
$disabled
=
TRUE
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment