Loading modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.libraries.yml +1 −1 Original line number Diff line number Diff line event_an_enroll: css: content: theme: css/event_an_enroll.css: {} modules/social_features/social_event/modules/social_event_managers/src/Plugin/views/field/SocialEventManagersViewsBulkOperationsBulkForm.php +10 −8 Original line number Diff line number Diff line Loading @@ -347,20 +347,22 @@ class SocialEventManagersViewsBulkOperationsBulkForm extends ViewsBulkOperations /** @var \Drupal\profile\Entity\ProfileInterface $profile */ $profile = reset($profiles); // It must be a Guest so we pick the name values we can get. // It must be a Guest, so we pick the name values we can get. if (!$profile) { $name = ''; $first_name = $entity->get('field_first_name')->getValue()[0]['value']; $last_name = $entity->get('field_last_name')->getValue()[0]['value']; if (!empty($first_name)) { $name .= $first_name; if (!empty($first_name = $entity->get('field_first_name')->getValue()) && !empty($first_name[0]['value']) ) { $name .= $first_name[0]['value']; $name .= ' '; } if (!empty($last_name)) { $name .= $last_name; if (!empty($last_name = $entity->get('field_last_name')->getValue()) && !empty($last_name[0]['value']) ) { $name .= $last_name[0]['value']; } return $name; return trim($name); } /** @var \Drupal\Core\StringTranslation\TranslatableMarkup $label */ Loading modules/social_features/social_user_export/src/Plugin/UserExportPluginBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ abstract class UserExportPluginBase extends PluginBase implements UserExportPlug } try { $value = $user_profile->get($field_name)->value; $value = $user_profile->get($field_name)->value ?? ''; } catch (\Exception $e) { $value = ''; Loading Loading
modules/social_features/social_event/modules/social_event_an_enroll/social_event_an_enroll.libraries.yml +1 −1 Original line number Diff line number Diff line event_an_enroll: css: content: theme: css/event_an_enroll.css: {}
modules/social_features/social_event/modules/social_event_managers/src/Plugin/views/field/SocialEventManagersViewsBulkOperationsBulkForm.php +10 −8 Original line number Diff line number Diff line Loading @@ -347,20 +347,22 @@ class SocialEventManagersViewsBulkOperationsBulkForm extends ViewsBulkOperations /** @var \Drupal\profile\Entity\ProfileInterface $profile */ $profile = reset($profiles); // It must be a Guest so we pick the name values we can get. // It must be a Guest, so we pick the name values we can get. if (!$profile) { $name = ''; $first_name = $entity->get('field_first_name')->getValue()[0]['value']; $last_name = $entity->get('field_last_name')->getValue()[0]['value']; if (!empty($first_name)) { $name .= $first_name; if (!empty($first_name = $entity->get('field_first_name')->getValue()) && !empty($first_name[0]['value']) ) { $name .= $first_name[0]['value']; $name .= ' '; } if (!empty($last_name)) { $name .= $last_name; if (!empty($last_name = $entity->get('field_last_name')->getValue()) && !empty($last_name[0]['value']) ) { $name .= $last_name[0]['value']; } return $name; return trim($name); } /** @var \Drupal\Core\StringTranslation\TranslatableMarkup $label */ Loading
modules/social_features/social_user_export/src/Plugin/UserExportPluginBase.php +1 −1 Original line number Diff line number Diff line Loading @@ -156,7 +156,7 @@ abstract class UserExportPluginBase extends PluginBase implements UserExportPlug } try { $value = $user_profile->get($field_name)->value; $value = $user_profile->get($field_name)->value ?? ''; } catch (\Exception $e) { $value = ''; Loading