2

I just updated to EE 2.7.1 and now using Channel Form in place of Safecracker. I can't seem to sort these two bugs:

1) Any existing 'file' custom fields behave as if they are required, throwing up the error "You did not select a file to upload." if left empty. (edit: this also happens in the CP, not just Channel Form problem)

2) The datepicker creates undefined text like this: "2013-10-01un1efine1". It does work if I use {field:my_date} but then get the localised/fixed select menu, and the only way to remove it is to hide it using css.

I'd be interested to hear anyone else's problems with the Safecracker to Channel Form problems.

1

1 Answer 1

1

The second bug is also reported: https://support.ellislab.com/bugs/detail/19782

Try editing system/expressionengine/modules/channel/libraries/Channel_form/ Channel_form_lib.php around line 966 so it looks like:

if ($this->datepicker)
 {
  $js_defaults['ui'][] = 'datepicker';
  $js_defaults['file'][] = 'cp/date';

}  

You’re just adding the $js_defaults[‘file’][] = ‘cp/date’;.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.