LISE Smarty tag in an UDT
Posted: Fri Apr 26, 2024 1:42 pm
I have an UDT which gets data from one LISE Instance while presave to another LISE Instance, but it's not working (Server Error 500):
The offending line seems to be the LISE tag. But if i do a plain UDT this works:
Maybe an UDT with a LISE instance presaving to another LISE instance is not possible?
Code: Select all
$item = $params['item_object'];
$id = $item->project;
$smarty_data = "{LISEProjects action='detail' item='".$id."' template_detail='foo'}";
//Save To LISE Instance
$item->project_name = $smarty->display('eval:'.$smarty_data);
Code: Select all
$id = isset($params['id']) ? $params['id'] : '';
$smarty_data = "{LISEProjects action='detail' item='".$id."' template_detail='foo'}";
$smarty->display('eval:'.$smarty_data);