Issue Bug Closed

#101636appendString does not respect round bracket

Stephan Bauer 08/09/23, 12:45 updated 12/02/25, 14:37

Description

I tried to us appendString to add SQL in sitemap config.

additionalWhere := appendString( AND `uid` NOT IN (48,10,50))

but in Version 12 the string is cut after the first closing round bracket in ‘Active Typoscript viewer’ and the SQL is incorrect:

additionalWhere = {#no_index} = 0 AND {#canonical_link} = '' AND uid NOT IN (48,10,50

This worked in Version 10.

plugin.tx_seo.config {
    xmlSitemap {
        sitemaps {
            pages {
                config {
                    additionalWhere := appendString( AND `uid` NOT IN (48,10,50))
                }
            }
        }
    }
}

Reviews 3

History 514

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-06-25T10:25:47+00:00" > 06/25/24, 10:25 </span>

    Still reproducible also on 13.2.0-dev (latest main)

  2. Riccardo De Contardi changed Complexity medium Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2024-06-25T10:28:40+00:00" > 06/25/24, 10:28 </span>

  3. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2024-11-14T12:35:10+00:00" > 11/14/24, 12:35 </span>

    Applied in changeset commit:52d2dce1312c41c39605665cf93506a4cf357c74.