Browse Source

Merge pull request #270 from nhart/6.x

6.x
pull/295/head
Jonathan Green 12 years ago
parent
commit
a6d904403b
  1. 6
      ContentModel.inc
  2. 2
      formClass.inc

6
ContentModel.inc

@ -1065,7 +1065,7 @@ class ContentModel extends XMLDatastream {
if (strtolower($ingest_form->getAttribute('hide_file_chooser')) == 'TRUE') {
$form['indicator']['ingest-file-location']['#type'] = 'hidden';
}
}
$dsid = $ingest_form->getAttribute('dsid');
$method = $ingest_form->getElementsByTagName('form_builder_method')->item(0);
@ -1093,6 +1093,10 @@ class ContentModel extends XMLDatastream {
}
}
}
else {
self::$errors[] = 'No XML form association exists.';
}
}
return $ret;
}

2
formClass.inc

@ -588,6 +588,7 @@ class formClass {
drupal_set_message($error, 'error');
}
}
else {
$form['collection_pid'] = array(
'#type' => 'hidden',
'#value' => $collection_pid
@ -598,6 +599,7 @@ class formClass {
'#value' => t('Ingest')
);
}
}
return $form;
}

Loading…
Cancel
Save