• Do
not register here on develop.twiki.org, login with your twiki.org account.
• Use
Item7848 for generic
doc work for TWiki-6.1.1. Use
Item7851 for doc work on
extensions that are not part of a release.
More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
• Does this site look broken?. Use the LitterTray web for test cases.
Item3673: Bad expression error in 'more' screen if parent is missing
Item Form Data
AppliesTo: |
Component: |
Priority: |
CurrentState: |
WaitingFor: |
TargetRelease |
ReleasedIn |
Extension |
PatternSkin |
Normal |
Closed |
|
minor |
4.2.0 |
Detail
To reproduce:
- Register a test user, say
TestUserA
- Create
Sandbox.TestUserASandbox
topic (from user homepage)
- Rename
TestUserA
to TestUserB
without fixing links in Sandbox web
- Go to
Sandbox.TestUserASandbox
topic
- Go to "more" screen
- Section "Set new topic parent" has this for "Current parent:"
IF{ "NONEMain.TestUserA=NONE" else="Main.TestUserA" then="(none)" }: Bad expression at .TestUserA=NONE
--
TWiki:Main/PeterThoeny
- 22 Feb 2007
This is due to a syntax error in the pattern skin templates.
%MAKETEXT{"Current parent:"}% %IF{"'NONE%SEARCH{ "^%TOPIC%$" scope="topic" regex="on" nosearch="on" nototal="on" format="$parent" }%'='NONE'" then="(none)" else='%SEARCH{ "^%TOPIC%$" scope="topic" regex="on" nosearch="on" nototal="on" format="[[$web.$parent][$parent]]" }%' }%
works a lot better.
CC