zillo32 / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Wrong Velocity code in 'Feedback' form template #473

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Define custom buttons 'Send' and/or 'Reset' title in form configuration.
2. Refresh the form
3. Title won't change.

What is the expected output? What do you see instead?
Custom title expected. Instead of it default value from form code is used.

Solution:

original:
#if(!$form.sendButtonTitle)
    #set($formSend = $form.sendButtonTitle)
#end
...
#if(!$form.resetButtonTitle)
    #set($formReset = $form.resetButtonTitle)
#end

change to:
#if($!form.sendButtonTitle != "")
    #set($formSend = $form.sendButtonTitle)
#end
...
#if($!form.resetButtonTitle != "")
    #set($formReset = $form.resetButtonTitle)
#end

Original issue reported on code.google.com by net...@netrat.eu on 7 May 2011 at 8:11

GoogleCodeExporter commented 8 years ago
Accepted for 0.9.5

Original comment by kinyelo@gmail.com on 10 Jul 2011 at 10:01

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1072.

Original comment by kinyelo@gmail.com on 10 Jul 2011 at 10:01