MantisBT - TestLink
View Issue Details
0004135TestLinkTest Plan (builds, milestones, test assign)public2011-01-05 14:412011-03-18 19:08
mam 
fman 
normalcrashalways
closedfixed 
 
2.0 (planned) 
MySql
0004135: SmartyCompilerException in planUpdateTC.tpl
I use the current 2.0 Dev Version from cvs.
Calling "Update Linked Test Case Versions" from Main Page i got:
----------------------------
Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "gui/templates/plan/planUpdateTC.tpl" on line 82 "{assign var="div_id" value=div_$ts_id}"
----------------------------
.... and a few other mistakes


This solution has worked for me (planUpdateTC.tpl):

Line 82
  old {assign var="div_id" value=div_$ts_id}
  new {assign var="div_id" value="div_:$ts_id"}

Line 99
  old {if $ts.testcase_qty gt 0 || $ts.linked_testcase_qty gt 0 }
  new {if $ts.testcase_qty gt 0 || $ts.linked_testcase_qty gt 0}

Line 122
   old {if $tcase.linked_version_id != 0 }
   new {if $tcase.linked_version_id != 0}
           
Line 126
   old {if $is_linked }
   new {if $is_linked}

Line 142
   old {if $is_active || $is_linked }
   new {if $is_active || $is_linked}

Line 143
   old {if $is_linked }
   new {if $is_linked}

Line 146
   old {if $draw_update_inputs }
   new {if $draw_update_inputs}

Line 170
   old {if $draw_update_inputs }
   new {if $draw_update_inputs}
                     

line 178
   old {if $ts.linked_testcase_qty gt 0 }
   new {if $ts.linked_testcase_qty gt 0}
No tags attached.
Issue History
2011-01-05 14:41mamNew Issue
2011-01-05 19:06fmanNote Added: 0013166
2011-01-05 19:32fmanStatusnew => resolved
2011-01-05 19:32fmanFixed in Version => 2.0 (planned)
2011-01-05 19:32fmanResolutionopen => fixed
2011-01-05 19:32fmanAssigned To => fman
2011-03-18 19:08fmanNote Added: 0014015
2011-03-18 19:08fmanStatusresolved => closed

Notes
(0013166)
fman   
2011-01-05 19:06   
Thanks for help.
(0014015)
fman   
2011-03-18 19:08   
release - 1.9.2 - 20110320