Page MenuHomePhabricator

If "Display if not empty" is checked then "Hold the list of values" doesn't work
Closed, ResolvedPublic

Description

Author: katkov.juriy

Description:
Create a PageSchema with the field that hold list of values and is displayed if not empty.
instead of getting something like.

{{#if:{{{test_field|}}}|! Test Field
{{!}} {{#arraymap:{{{test_field|}}}|,|x|[[test_field::x]]}}}}

You will get something like this:

{{#if:{{{test_field|}}}|! Test Field
{{!}} [[test_field::{{{test_field|}}}]]}}

I can see that on this page on the field BUGGY FIELD:

http://scratchpad.referata.com/wiki/Testing_david%27s_bug
http://scratchpad.referata.com/wiki/Category:Q - the category and the page schema


Version: unspecified
Severity: normal

Details

Reference
bz46714

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:30 AM
bzimport set Reference to bz46714.
bzimport added a subscriber: Unknown Object (MLST).

katkov.juriy wrote:

this bug rather belongs to Semantic Forms because the source of an error somewhere in SF_TemplateField.php

Yaron_Koren claimed this task.

I don't know if this bug was ever fixed per se, but now that Page Schemas has switched to calling Page Forms' #template_display (in most cases) instead of doing the entire layout, I think this bug is no longer relevant.