diff --git a/C4/Creators/Layout.pm b/C4/Creators/Layout.pm index f1dc20edd4..2a689e0352 100644 --- a/C4/Creators/Layout.pm +++ b/C4/Creators/Layout.pm @@ -165,6 +165,7 @@ sub save { } else { # otherwise create a new record my @params; + delete $self->{layout_id}; # Could be an empty string my $query = "INSERT INTO creator_layouts ("; foreach my $key (keys %{$self}) { push (@params, $self->{$key});