Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/GADS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2675,11 +2675,12 @@ prefix '/:layout_name' => sub {
{
$params->{curval_layout_id} = query_parameters->get('curval_layout_id');
$params->{curval_record_id} = query_parameters->get('curval_record_id');
$params->{hide_view_menu} = 1;
}

my $records = GADS::Records->new(%params);

$records->view($view);
$records->view(query_parameters->get('curval_record_id') ? undef : $view);
$records->rows($rows);
$records->page($page);
$records->sort(session 'sort');
Expand Down
2 changes: 1 addition & 1 deletion lib/GADS/API.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ sub _get_records {
my $sheetname = param 'sheet';
my $user = logged_in_user;
my $layout = var('instances')->layout_by_shortname($sheetname); # borks on not found
my $view = current_view($user, $layout);
my $view = query_parameters->get('curval_record_id') ? undef : current_view($user, $layout);

# Allow parameters to be passed by URL query or in the body. Flatten into
# one parameters object
Expand Down
6 changes: 6 additions & 0 deletions views/navigation/records_top_bar.tt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
<div class="content-block__navigation-left">
<div class="list list--horizontal">
<ul class="list__items">
[% IF hide_view_menu %]
<li class="list__item text-primary font-weight-bold">
<p>Curval View</p>
</li>
[% ELSE %]
<li class="list__item ">
[% INCLUDE navigation/dropdown_select_view.tt %]
</li>
[% END %]

<li class="list__item ">
[%
Expand Down