Browse Source

Merge pull request #2 from willtp87/7.x.cwrcps-9

no need for ds label
pull/499/head
Morgan Dawe 11 years ago
parent
commit
f2dd480894
  1. 1
      includes/datastream.version.inc

1
includes/datastream.version.inc

@ -313,7 +313,6 @@ function islandora_datastream_version_replace_form_submit($form, &$form_state) {
$file = file_load($form_state['values']['file']); $file = file_load($form_state['values']['file']);
try { try {
$ds = $object[$form_state['dsid']]; $ds = $object[$form_state['dsid']];
$ds->label = $form_state['values']['label'];
$ds->mimetype = $file->filemime; $ds->mimetype = $file->filemime;
$path = drupal_realpath($file->uri); $path = drupal_realpath($file->uri);
$ds->setContentFromFile($path); $ds->setContentFromFile($path);

Loading…
Cancel
Save