Skip to content

Commit

Permalink
Do not break when archetypes.edit.beforefieldsets or afterfieldsets g…
Browse files Browse the repository at this point in the history
…ives an error.
  • Loading branch information
mauritsvanrees committed Dec 13, 2011
1 parent 1652f6c commit 0c8da42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Products/PloneFormGen/skins/PloneFormGen/fg_edit_macros_p3.pt
Expand Up @@ -89,7 +89,8 @@

<metal:block define-slot="extra_top" />

<div tal:replace="structure provider:archetypes.edit.beforefieldsets" />
<div tal:replace="structure provider:archetypes.edit.beforefieldsets|nothing"
tal:on-error="nothing" />

<metal:block define-slot="widgets">
<div id="pfg-fieldwrapper">
Expand All @@ -114,7 +115,8 @@
</div>
</metal:block>

<div tal:replace="structure provider:archetypes.edit.afterfieldsets" />
<div tal:replace="structure provider:archetypes.edit.afterfieldsets"
tal:on-error="nothing" />

<metal:block define-slot="extra_bottom" />

Expand Down

0 comments on commit 0c8da42

Please sign in to comment.