09/08/2015 at 5:10 pm
#346038
Keymaster
@ Javier
re: states checkbox not working
My best guess this is because the code that sanitizes and saves the state field is expecting a string, a checkbox group is sending an array. You need to edit the set addresses method in the cnEntry class to expect an array. When saving it, you’ll need to serialize the array into a string. I suggest using json_encode() to do this. You’ll also need to change the get address method to unserial the array. Beyond that, you might have to make numerous other changes throughout to the code to account for this type of change. What those would be, sorry, can’t really say off the top of my head.
HOpe that helps.
