After more thorough debugging, I've come to the conclusion that the
above IF test - if (!isset($Model->data[$Model->alias]['file'])) is
true, because in plugins/media/models/behaviors/transfer.php:213 there
are these lines:
if (TransferValidation::blank($file)) {
/* Set explicitly null enabling allowEmpty in rules act
upon
emptiness */
return $Model->data[$Model->alias]['file'] = null;
}
This is exactly where the array at index 'file' is being null-ed..
Is this by design and how am I to go about allowing my model to be
submitted without the media file?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en