Exception with template and table (mw.loader::execute)
Hi,
Firebug reports 'mw.loader::execute> Exception thrown by ext.srf.filtered.value-filter: this.data(...).values[item] is undefined' when using filtered format with a template.
{{ #ask: [[Category:Process]] | ?Has Accountable|+filter=value | format = filtered | views=list | list view type=list | list view template=srfProcessFiltered | list view introtemplate=srfProcessFiltered_Intro | list view outrotemplate=srfProcessFiltered_Outro }} Intro Template: <table> Template: <tr><td>{{{1}}}</td><td>{{{2}}}</td></tr> Outro Template: </table>
MW 1.19.7 SMW 1.8.0.5 SRF 1.8 $wgRawHtml=true;
The exception occurs during page load. The unfiltered content is loaded but when clicking on an filter item nothing happens (filter not applied).
This seems to happen only if table elements are present in the templates. Simple lists or comma separated output via template works fine.
... the same exception occurs when using DIVs with display:table styles.
The same happens with MW 1.20.7 and SMW 1.8.0.5. and $wgRawHtml=false
; Did you file a bug for this?
Hi Karsten, we were able to fix this. We (gesinn.it) sponsored dev for a new view "table". We are about to commit our changes very soon.
Heiya Alexander,
that's very cool news! Adding more views to this result format is great and I am curious to try the implementation.
Cheers