CMS MADE SIMPLE FORGE

ListIt2FEEdit

 

[#9901] Form submission returns error

avatar
Created By: Stefan Clapczynski (clapczyn)
Date Submitted: Sun Mar 16 19:59:14 -0400 2014

Assigned To: Prue Rowland (psy)
Version: 1.1
CMSMS Version: 1.11.10
Severity: Major
Resolution: Accepted
State: Open
Summary:
Form submission returns error
Detailed Description:
After upgrading I get an error at form submission although the data is saved to
Li2-Instance.

ERROR: at line 127 in file
/home/.sites/837/site478/web/lib/smarty/libs/sysplugins/smarty_internal_templatebase.php:

Message:
Unable to load template module_db_tpl 'ListIt2MyInstance;detail_'


When I get back to the summary page the data has been submitted correctly. 
Am I missing something that has to be adapted?

Thx


History

Comments
avatar
Date: 2014-03-16 21:13
Posted By: Prue Rowland (psy)

The default template has changed.

If you are using a custom LI2FEEdit template, you will need to update it too.

Easiest way is copy/paste:

    {if isset($saved)}  
{cms_module module=$mod->GetName() item=$item->item_id action='detail'
template_detail=$detailtemplate detailpage=$originalpage inline=1}
    {else}

at the top and remember to close off with {/if} at the end.


Let me know if this resolves the problem and I will update the changelog.
      
avatar
Date: 2014-03-16 21:18
Posted By: Stefan Clapczynski (clapczyn)

I'm not using a custom template, error occurs with std-template …
      
avatar
Date: 2014-03-16 21:29
Posted By: Prue Rowland (psy)

OK, the module *should* retrieve the default detail template for the LI2
instance with the param detailtemplate.

Please try specifying a detail template and let me know.
      
avatar
Date: 2014-03-17 00:18
Posted By: Prue Rowland (psy)

Will be fixed in next release.  Interim solution:

Change:

if (!isset($detailtemplate)){
	$detailtemplate = $remote_mod->GetPreference('detailtemplate');
}



To:

if (!isset($params['detailtemplate'])) {
$detailtemplate = $remote_mod->GetPreference($remote_mod->_GetModuleAlias() .
'_default_detail_template');
}

starting on line 204 in action.default.php

      
avatar
Date: 2014-03-17 06:09
Posted By: Stefan Clapczynski (clapczyn)

works, thx!
      
avatar
Date: 2014-03-19 18:18
Posted By: Prue Rowland (psy)

Will be fixed in the next release. In the interim, specify a 'detailtemplate'
parameter in the tag.
      
Updates

Updated: 2014-03-19 18:18
resolution_id: 5 => 6

Updated: 2014-03-16 21:13
resolution_id: => 5