Added scratch variables to all templates.
This commit is contained in:
parent
ac92b7d6ba
commit
c51b8e5bcd
1 changed files with 6 additions and 0 deletions
|
|
@ -50,6 +50,12 @@ sub addSessionVars {
|
|||
:$forms->{$field};
|
||||
}
|
||||
}
|
||||
my $scratch = $self->session->scratch->{_data};
|
||||
foreach my $field (keys %$scratch) {
|
||||
if ($scratch->{$field}) {
|
||||
$vars->{"session.scratch.".$field} = $scratch->{$field};
|
||||
}
|
||||
}
|
||||
$vars->{"webgui.version"} = $WebGUI::VERSION;
|
||||
$vars->{"webgui.status"} = $WebGUI::STATUS;
|
||||
return $vars;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue