Commit f1240dd9 authored by Andrei Mondoc's avatar Andrei Mondoc
Browse files

#7 ensure there's a profile id set

parent 082d36e8
......@@ -556,6 +556,7 @@ class CiviCRM_Gutenberg_Blocks {
switch ($attributes['component']) {
case 'profile':
unset($attributes['action'], $attributes['id']);
$attributes['gid'] = $attributes['gid'] ?? 1;
break;
case 'contribution':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment