Skip to content

Commit ae9d950

Browse files
authored
fix new rule forms in entity form
1 parent 51e0219 commit ae9d950

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Rule.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2967,7 +2967,12 @@ public function showAndAddRuleForm($item)
29672967
$canedit = self::canUpdate();
29682968

29692969
if ($canedit && ($item instanceof Entity)) {
2970-
$this->showForm($item->getField('id'), [
2970+
// language=Twig
2971+
echo TemplateRenderer::getInstance()->renderFromStringTemplate(<<<TWIG
2972+
{% import '/components/form/fields_macros.html.twig' as fields %}
2973+
{{ fields.smallTitle(label) }}
2974+
TWIG, ['label' => $this->getTitle()]);
2975+
$this->showForm(0, [
29712976
'no_header' => true,
29722977
'short' => true,
29732978
'entities_id' => $item->getField('id'),

0 commit comments

Comments
 (0)