get_field_value causes error 500

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
WDJames
Forum Members
Forum Members
Posts: 81
Joined: Tue Feb 13, 2018 1:09 pm

get_field_value causes error 500

Post by WDJames »

Hello,

I'm trying to save data from Smartforms to LISE using a UDT but found that "get_field_value" is causing an error 500. This used to work on previous versions of CMSMS but isn't on version 2.2.21. Below is my UDT so far:

Code: Select all

$data = $params['data'];

$mod = cmsms()->GetModuleInstance('LISEInstance');
if(!is_object($mod))
return;

$alias = $data->get_field_value('Alias');

$obj = $mod->LoadItemByIdentifier('alias', $alias);

$mod->SaveItem($obj);
Has anyone else come across the same issue and if so, were there any workarounds?

Thanks,

James
User avatar
webform
Power Poster
Power Poster
Posts: 507
Joined: Sat Nov 25, 2006 3:39 pm

Re: get_field_value causes error 500

Post by webform »

It is possibly a bug in the UDT that executes the code when you save your UDT. (I have submitted a bug report)

I got around the problem by pasting my code directly into the code field of my SQL table.
Post Reply

Return to “Modules/Add-Ons”