I have my video field setup and the 'required' box ticked.

However, when i go to create a node I can fill in the title and create a video node without uploading a video first... i'm told that my video is being processed etc, but there is no video. If i leave out the title i'm told i need to fill it in.

erm??? is this just me or is there a serious problem with the module?

firefox, safari, mac
admin, or regular user

Comments

sphism’s picture

Can someone please verify that the cdn2 field gets validated? Just go to your site and submit a cdn2 video node with no video attached... my setup creates the node with no errors.

Then of course when i go to edit the node i cannot change anything or upload a new video because the module doesn't allow for that... oh dear.

sphism’s picture

I was just looking through cdn2_field.inc and noticed this on line 74...

/**
 * Define the behavior of the cdn2 field type
 */
function cdn2_field($op, &$node, $field, &$node_field, $teaser, $page) {
  switch ($op) {
    case 'validate':
      break;
    case 'sanitize':
      break;
    case 'load':
...
..
.

Should there be a validate function in case: 'validate' ????

or does drupal deal with the 'empty field' validation separately?

kylebrowning’s picture

Assigned: Unassigned » kylebrowning

Ill take care of this, and let you know when I push it.

sphism’s picture

Great stuff, thanks