Create organization on install - contact1

Created on 8 November 2023, 8 months ago
Updated 10 November 2023, 8 months ago

Problem/Motivation

Every site will have an organization the site belongs to. It would be easier if contact id 1 was always this organization.

Steps to reproduce

Proposed resolution

create crm_install().

$name = \Drupal::config('system.site')->get('name') ?? 'Default Organization';
CrmContact::create([
  'name' => $name,
  'type' => 'organization',
])->save();

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bluegeek9

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024