Page MenuHomePhabricator

When the field is marked as optional the #if call doesn't have two closing curly brackets
Closed, ResolvedPublic

Description

  1. Try to create a schema with one optional field
  2. the resulting template will have an #if call which looks like this:
{{#if:{{{Description_of_problem|}}}|
{{!}}-
! Описание проблемы
{{!}} [[Description_of_problem::{{{Description_of_problem|}}}]]
|-

As you can see, the closing }} are missing

Event Timeline

Change 540410 had a related patch set uploaded (by Yaron Koren; owner: Yaron Koren):
[mediawiki/extensions/PageForms@master] Fix for template creation with Page Schemas + SMW (T232825)

https://gerrit.wikimedia.org/r/540410

Change 540410 merged by jenkins-bot:
[mediawiki/extensions/PageForms@master] Fix for template creation with Page Schemas + SMW (T232825)

https://gerrit.wikimedia.org/r/540410

@KatkovYury - sorry for the long delay. This was actually a Page Forms bug. I believe it's fixed now, though I can't test it because it only happens when SMW is installed. I'm setting the bug to "Resolved" - please re-open it if the fix didn't actually work.