#3263 Fix syntax error cheetah template
Closed 2 years ago by tkopecek. Opened 2 years ago by alexi.
alexi/koji fix_3155  into  master

Fix syntax error
Alex Iribarren • 2 years ago  
file modified
+1 -1
@@ -20,7 +20,7 @@ 

        </tr>

        <tr>

          <th>Arches</th>

-         <td><input type="text" name="arches" value=$util.escapeHTML("$host.arches)"/></td>

+         <td><input type="text" name="arches" value="$util.escapeHTML($host.arches)"/></td>

        </tr>

        <tr>

          <th>Capacity</th>

This template contains a syntax error that throws this very misleading error:

Cheetah.Parser.ParseError: Invalid Syntax Line 38, column 20 in file hostedit.chtml
Line|Cheetah Code 
----|------------------------------------------------------------- 
 35 | <td><textarea name="comment" rows="2" cols="50">$util.escapeHTML($host.comment)</textarea></td> 
 36 | </tr> 
 37 | <tr> 
 38 | <th>Enabled?</th> 
                 ^ 
 39 | <td><input type="checkbox" name="enabled" value="yes" #if $host.enabled then 'checked="checked"' else ''#/> 
 40 | </tr> 
 41 | <tr>

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

2 years ago

Merged in #6804026 (as I've added link to the issue, pagure wasn't able to close PR automatically).

Pull-Request has been closed by tkopecek

2 years ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

2 years ago