Skip to content

Commit

Permalink
Merge pull request #449 from City-of-Helsinki/develop
Browse files Browse the repository at this point in the history
Release 5.9.
  • Loading branch information
tvalimaa authored Sep 5, 2023
2 parents 9436d0e + f0d23dc commit e4548e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions public/modules/custom/asu_content/asu_content.module
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e4548e9

Please sign in to comment.