$dw->set('option_value', $dw->getExisting('option_value'));
return true;
Yes, I am, because I modify the option before it is displayed to the user and even if the user just clicks okay without changing this value it is of course detected as changed. That's why I check in my verify part whether the options was indeed changed by the user (and is not my modified one), so that I can skip the change when it is not changed by the user.are you sure you need to approach it like that?
protected '_newData' =>
array (size=1)
'xf_option' =>
array (size=0)
empty
I would prefer the internal mode, but unfortunately setInternal is not available. There is only "_setInternal", but this is a protected function.
But BTW: Validation should not be an error as my data type is correct (I pass a string to $dw->set and my option is also set to accept strings), but as it seems $dw->set does not work.
$option = $dw->getExisting('option_value');
return true;
We use essential cookies to make this site work, and optional cookies to enhance your experience.