Hi,
I have a TV (checkbox) but when I choose the options nothing gets saved.
I have attached screen shots of the TV Creation provess and the Selection process.
When I pass a Default value to the TV, it shows as CHECKED but when I uncheck the same, save the document and re-open the document, it still shows the option as checked.
Please can someone advice me on where I am going wrong.
regards,
-raavi
Does it exhibit the same behavior with single select ?
I have found out that multiple select box do not work properly (it was some time ago though, with 0.9.1)
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
-
MODX Staff
- 1,535 Posts
Thanks David - I tried it with single-select and everything works okay. The problem does indeed seem to be limited to multi-select lists and checkboxes.
Also, I tested across 0.9.2.1 and an old test install of 0.9.1 and the problem appears across both versions.
I’ve had a look through the bugtracker and can’t find this logged anywhere so I’ll track it later today.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
Hi,
You might want to try out these lines 228-234 save_content.processor:
// handles checkboxes & multiple selects elements
$feature_insert = array();
$lst = $_POST["tv".$row['name']];
while (list($featureValue, $feature_item) = each ($lst)) {
$feature_insert[count($feature_insert)] = $feature_item;
}
$tmplvar = implode("||",$feature_insert);
I am going to test this, thanks Raymond
we should remember to have this patched in the next rev !
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Sorry for the delay in replying, was traveling for the last few days.
Thank you all for you excellent support!!!
Raymond,
It works!!!
Thank a tonne.
-raavi
Glad I would help out

Thanks for sharing
PS. Please remember to update the bug btracker with this fix so it can be in the next release.