Skip to content
Snippets Groups Projects
Commit ff11e87b authored by jaapjansma's avatar jaapjansma
Browse files

Fixed issue with caching and get options

parent c9a4a990
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,11 @@
return $cache;
}
$formProcessor = self::getFormProcessor($formProcessorName);
try {
$formProcessor = self::getFormProcessor($formProcessorName);
} catch (\API_Exception $e) {
return;
}
// Process all inputs of the formprocessor.
foreach($formProcessor['inputs'] as $input) {
......@@ -352,7 +356,11 @@
}
// Find the form processor
$formProcessor = self::getFormProcessor($form_processor_name);
try {
$formProcessor = self::getFormProcessor($form_processor_name);
} catch (\API_Exception $e) {
return TRUE;
}
// FInd the action
foreach($formProcessor['actions'] as $action) {
if ($action['name'] == $action_name) {
......
......@@ -43,7 +43,11 @@ class FormProcessorDefaults extends FormProcessor implements API_ProviderInterfa
return $cache;
}
$formProcessor = self::getFormProcessor($formProcessorName);
try {
$formProcessor = self::getFormProcessor($formProcessorName);
} catch (\API_Exception $e) {
return;
}
// Process all inputs of the formprocessor.
foreach ($formProcessor['default_data_inputs'] as $input) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment