--- sites/all/modules/station/schedule/original.station_schedule.edit.inc	vr sep 18 01:13:43 2009
+++ sites/all/modules/station/schedule/station_schedule.edit.inc	do jan 28 17:21:32 2010
@@ -124,6 +124,12 @@
     '#default_value' => $schedule_item->may_archive,
     '#description' => t('Checking this indicates that the Station Archive module can save audio recordings of the program at this timeslot to the archive.'),
   );
+  $form['duplicate'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Create duplicate'),
+    '#default_value' => NULL,
+    '#description' => t('Check this box to create a new item with the settings above, instead of saving the changes in the original item.'),
+  );
 
   $form['buttons']['submit'] = array(
     '#type' => 'submit',
@@ -181,7 +187,7 @@
   $schedule = node_load($form_state['values']['schedule_nid']);
 
   $record = array(
-    'iid' => $form_state['values']['iid'],
+    'iid' => $form_state['values']['duplicate'] ? NULL : $form_state['values']['iid'],
     'schedule_nid' => $form_state['values']['schedule_nid'],
     'program_nid' => $program->nid,
     'start' => $form_state['values']['range']['start'],
@@ -189,7 +195,7 @@
     'may_archive' => $form_state['values']['may_archive'],
   );
 
-  if ($form_state['values']['iid']) {
+  if ($form_state['values']['iid'] && !$form_state['values']['duplicate']) {
     drupal_write_record('station_schedule_item', $record, array('iid'));
     $old_record = (array) $form_state['values']['old_schedule_item'];
     if ($old_record['program_nid'] != $record['program_nid']) {
