Edit: I posted this in the wrong forum by mistake. So I am re-posting in in the debug forum with an update as well.
I have a number of tables with boolean fields. In the front end in the collection view, they used to be either empty (=false) or have a tick mark on a white background (=true). The html for the boolean fields int he front end was generated by a call to html.fly.bool in the JDOM library.
This no longer works and it seems that the html.fly.bool used to adding the class icon-ok to the element if the value was true and this caused the correct offset for the tick mark in the image glyphicons-halflings.png. In more recent builds, the class icon-ok is not assign and the offset is not correct and the field remains blank even if the value is true.
However, in some tables int he recent builds, the call is not to html.fly.bool but to html.grid.bool and the classes/icons that are used for published/unpublished are used for booleans in lists. So the classes icon-unpublish and icon-published are assigned when the html is generated by html.gris.bool. This works fine too.
The problem is that for some tables the call is to html.fly.bool (which doesn't work anymore) and for other tables it is to html.grid.bool which does work.
I can't see any difference between the tables. How can I make the builder use html.grid.bool instead of html.fly.bool?
Grateful for any help!!!
This does not work:
<td style="text-align:left">
<?php echo JDom::_('html.fly.bool', array(
'dataKey' => 'passport_checked',
'dataObject' => $row,
'togglable' => false,
'viewType' => 'icon'
));?>
</td>
This does work:
<td style="text-align:center">
<?php echo JDom::_('html.grid.bool', array(
'dataKey' => 'flyer_done',
'dataObject' => $row,
'viewType' => 'icon'
));?>
</td>