Skip to content
Snippets Groups Projects
Commit dc23a230 authored by Prasad's avatar Prasad
Browse files

Fixes #450, #832: Wrong key used for re-caching picklist details

parent 474586f6
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -645,7 +645,7 @@ class Import_Data_Action extends Vtiger_Action_Controller {
$fieldObject->setPicklistValues(array($fieldValue));
// Update cache state with new value added.
$wsFieldDetails[] = array('label' => $fieldValue, 'name' => $fieldValue);
$wsFieldDetails[] = array('label' => $fieldValue, 'value' => $fieldValue);
Vtiger_Cache::getInstance()->setPicklistDetails($moduleObject->getId(), $fieldName, $wsFieldDetails);
unset($this->allPicklistValues[$fieldName]);
......
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