Theme SuiteP | precision= | missing Value

Hello,

i have a problem an question with the Theme SuiteP.
I migrated a old selfmade module.
Everytime i do a quickrepair a get a problem with my thme.
The error looks like this:


Fatal error: Smarty error: [in cache/themes/SuiteP/modules/Grund_Grund/DetailView.tpl line 2239]: syntax error: missing attribute value (Smarty_Compiler.class.php, line 1600) in /var/www/clients/client65/web217/web/suitecrm2/include/Smarty/Smarty.class.php on line 1094

The tpl looks like:



<div class="col-xs-12 col-sm-8 detail-view-field inlineEdit" type="float" field="grundstucksgrosse"  >

{if !$fields.grundstucksgrosse.hidden}
{counter name="panelFieldCount" print=false}

<span class="sugar_field" id="{$fields.grundstucksgrosse.name}">
{sugar_number_format var=$fields.grundstucksgrosse.value precision= }
</span>
{/if}

</div>

When i manually change the part “precision=” to “precision=0” i can use my module.
But if i repair it again the same error occures.

I allready changed the vardefs.php and added the line:

  'grundstucksgrosse' => 
  array (
    'required' => false,
    'name' => 'grundstucksgrosse',
    'vname' => 'LBL_GRUNDSTUCKSGROSSE',
    'type' => 'float',
    'massupdate' => 0,
    'comments' => '',
    'help' => '',
    'importable' => 'true',
    'duplicate_merge' => 'disabled',
    'duplicate_merge_dom_value' => '0',
    'audited' => 0,
    'reportable' => 0,
    'len' => '18',
    'precision' => '',
  ),

Does anyone has an idea how i can fix it?

Thanks a lot.

Tobias

You must have an original Grund_Grund/DetailView.tpl somewhere which you need to fix. You get the error in the cached version, but you need to get to the original file.

Maybe it’s in one of these
custom/modules/Grund_Grund/DetailView.tpl
custom/themes/SuiteP/modules/Grund_Grund/DetailView.tpl

or in the same directories, but without the “custom” (though you shouldn’t place your files there).