#1 2014-10-22 13:49:48

epescol
Member
Registered: 2012-05-27
Posts: 86

[SOLVED] TypeError: f.content is null error (static element instances)

I get the this error in static element iinstances

TypeError: f.content is null

in /themes/admin/javascript/ionize/ionize_staticitemmanager.js?v=1.0.7 line 206

var content = f.content.length > 20 ? f.content.substring(0,20) + '...' : f.content;

and as result, the inserted items are not displayed.

Any idea how to fix the error?

Thank you

Last edited by epescol (2014-10-23 08:45:47)

Offline

#2 2014-10-23 08:45:13

epescol
Member
Registered: 2012-05-27
Posts: 86

Re: [SOLVED] TypeError: f.content is null error (static element instances)

The problem is when I have field defined as checkboxes and I save the item without checking none checkbox

I solved the problem with

	if(!!f.content){
		var content = f.content.length > 20 ? f.content.substring(0,20) + '...' : f.content;
	}

It would be nice if you could fix this in future releases.

Thank you for your nice work

Last edited by epescol (2014-10-23 08:48:08)

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations