diff --git a/public/modules/custom/asu_application/src/Form/ReservedApartmentContactForm.php b/public/modules/custom/asu_application/src/Form/ReservedApartmentContactForm.php index 98cc29d5..11a19846 100644 --- a/public/modules/custom/asu_application/src/Form/ReservedApartmentContactForm.php +++ b/public/modules/custom/asu_application/src/Form/ReservedApartmentContactForm.php @@ -118,7 +118,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { $to = $values['field_contact_person']; $langcode = 'fi'; $send = TRUE; - $subject = 'Yhteydenottopyyntö vapaaseen huoneistoon' . $values->field_apartment_information; + $subject = 'Yhteydenottopyyntö vapaaseen huoneistoon' . $values['field_apartment_information']; $params = [ 'subject' => $subject, 'message' => $body, diff --git a/public/modules/custom/asu_content/asu_content.module b/public/modules/custom/asu_content/asu_content.module index d8b74460..2f39d9e3 100644 --- a/public/modules/custom/asu_content/asu_content.module +++ b/public/modules/custom/asu_content/asu_content.module @@ -381,14 +381,6 @@ function clearCache($project) { }; $apartments_index = array_map($apartments_index, $apartments_ids); - // Load apartment entities. - $apartments = \Drupal::entityTypeManager()->getStorage('node')->loadMultiple($apartments_ids); - - // Update apartments so data will updated to elastic search. - foreach ($apartments as $apartment) { - $apartment->save(); - } - // Trigger search api index update. foreach ($indexes as $index) { $index->trackItemsUpdated('entity:node', $apartments_index);