Skip to content

Commit

Permalink
Fix has no active subclass exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen van den Nieuwenhuisen committed Jul 23, 2020
1 parent d002ef5 commit a71f5ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ This code manages the many-to-[one|many] association field popup
jQuery('#field_widget_{{ id }}').closest('form').ajaxSubmit({
url: '{{ path('sonata_admin_retrieve_form_element', {
'elementId': id,
'subclass': sonata_admin.admin.getActiveSubclassCode(),
'subclass': sonata_admin.admin.hasActiveSubClass() ? sonata_admin.admin.getActiveSubclassCode() : null,
'objectId': sonata_admin.admin.root.id(sonata_admin.admin.root.subject),
'uniqid': sonata_admin.admin.root.uniqid,
'code': sonata_admin.admin.root.code
Expand Down

0 comments on commit a71f5ba

Please sign in to comment.