Skip to content
Open
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
4 changes: 4 additions & 0 deletions lib/GADS/View.pm
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ sub write
length $self->name < 128
or error __"View name must be less than 128 characters";

# Names consisting of just whitespace characters cause issues when displaying a view
$self->name !~ /^\s*$/
or error __"View name must not contain only whitespace characters";

my $global = !$self->layout->user ? 1 : $self->global;

$self->clear_writable; # Force rebuild based on any updated values
Expand Down