Answers.Body: <p>Ran into this upgrading to 4.7.22</p>
  
  <p>For some reason (which I have not investigated) the reserved profiles for <em>New Individual</em>, <em>New Organization</em>, etc got their profile ID appended to their "name".</p>
  
  <p>If you query the UFGroup entity in the API explorer like this:</p>
  
  <pre><code>$result = civicrm_api3('UFGroup', 'get', array(
    'sequential' =&gt; 1,
    'title' =&gt; "New Organization",
  ));
  </code></pre>
  
  <p>You should have a result like:</p>
  
  <pre><code>{
      "id": "5",
      "is_active": "1",
      "group_type": "Organization,Contact",
      "title": "New Organization",
      "add_captcha": "0",
      "is_map": "0",
      "is_edit_link": "0",
      "is_uf_link": "0",
      "is_update_dupe": "0",
      "is_cms_user": "0",
      "is_reserved": "1",
      "name": "new_organization_5", // note the appended ID, 'new_organization' should be the value here
      "is_proximity_search": "0",
      "is_error": 0
  }
  </code></pre>
  
  <p>Digging <a href="https://github.com/civicrm/civicrm-core/blob/8b1e918c8246907e2b7dd38d94662a24116e65e4/js/Common.js#L831" rel="nofollow noreferrer">here</a>, <a href="https://github.com/civicrm/civicrm-core/blob/8b1e918c8246907e2b7dd38d94662a24116e65e4/CRM/Core/Resources.php#L686" rel="nofollow noreferrer">here</a> and <a href="https://github.com/civicrm/civicrm-core/blob/ac525af0bc91528c3d3c2706fabaffef15b736e6/CRM/Core/BAO/UFGroup.php#L3303" rel="nofollow noreferrer">here</a> found that when the method to get the profile links is called with no params, the profiles names are hardcoded to the default <code>'new_individual', 'new_organization', 'new_household'</code></p>
  
  <p>To fix it you'll need to revert back the profile "name" either via the API explorer:</p>
  
  <pre><code>$result = civicrm_api3('UFGroup', 'create', array(
      'sequential' =&gt; 1,
      'id' =&gt; 5,
      "is_active": "1",
      "group_type": "Organization,Contact",
      "title": "New Organization",
      "add_captcha": "0",
      "is_map": "0",
      "is_edit_link": "0",
      "is_uf_link": "0",
      "is_update_dupe": "0",
      "is_cms_user": "0",
      "is_reserved": "1",
      "name": "new_organization",
      "is_proximity_search": "0",
  ));
  </code></pre>
  
  <p>Or if you have access to and you feel more comfortable, querying the database directly:</p>
  
  <pre><code>update civicrm_uf_group set name="new_organization" where id=5;
  </code></pre>
  
  <p>Hope that helps.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-01T17:33:01.920Z
Answers.Text: Thank you, thank you! This was perfect. I used phpyadmin to query the statement you gave me, then clear cache in CiviCRM.
Answers.UserDisplayName: Kristine
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-01T10:04:31.067Z
Answers.LastActivityDate: 2017-09-01T10:04:31.067Z
Answers.UserDisplayName: Andrei
Body: <p>On CiviCRM 4.7.22 Drupal 7, I'm missing the "New Organization" button under Current Employer. I can't seem to find figure out whether this is a settings problem or not. A previous version of CiviCRM had it. </p>
  
  <p>And I haven't made any changes to the contact types or relationships.<a href="https://i.sstatic.net/YcuRD.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YcuRD.png" alt="enter image description here"></a></p>
  
  <p>I also checked the reserved profiles. No changes on "new_organization".</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-30T21:00:05.703Z
Comments.Text: I'm on 4.7.21 and it isn't there.  But if you go to dmaster.demo.civicrm.org it's there on 4.7.25.  Must have been a bug that's been fixed I guess.
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-30T21:17:28.787Z
Comments.Text: Strange thing is that on a clean 4.7.22 install, the "New Organization" button shows.
Comments.UserDisplayName: Kristine
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-08-31T18:48:43.883Z
Comments.Text: Also, just updated to 4.7.23 and no changes.
Comments.UserDisplayName: Kristine
Tags: <contacts><organization>
Title: New Organization Button Missing
ThreadText: # New Organization Button Missing
  
  (Asked by: username_0 on 2017-08-30)
  
  On CiviCRM 4.7.22 Drupal 7, I'm missing the "New Organization" button under Current Employer. I can't seem to find figure out whether this is a settings problem or not. A previous version of CiviCRM had it.
  
  And I haven't made any changes to the contact types or relationships.[![enter image description here](https://i.sstatic.net/YcuRD.png)](https://i.sstatic.net/YcuRD.png)
  
  I also checked the reserved profiles. No changes on "new\_organization".
  
  **Tags:** contacts, organization
  
  > **Comments:**
  > **username_1**: I'm on 4.7.21 and it isn't there.  But if you go to dmaster.demo.civicrm.org it's there on 4.7.25.  Must have been a bug that's been fixed I guess.  
  > **username_0**: Strange thing is that on a clean 4.7.22 install, the "New Organization" button shows.  
  > **username_0**: Also, just updated to 4.7.23 and no changes.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-09-01. Score: 3 | Accepted answer
  
  Ran into this upgrading to 4.7.22
  
  For some reason (which I have not investigated) the reserved profiles for *New Individual*, *New Organization*, etc got their profile ID appended to their "name".
  
  If you query the UFGroup entity in the API explorer like this:
  
  ```
  $result = civicrm_api3('UFGroup', 'get', array(
    'sequential' => 1,
    'title' => "New Organization",
  ));
  
  ```
  
  You should have a result like:
  
  ```
  {
      "id": "5",
      "is_active": "1",
      "group_type": "Organization,Contact",
      "title": "New Organization",
      "add_captcha": "0",
      "is_map": "0",
      "is_edit_link": "0",
      "is_uf_link": "0",
      "is_update_dupe": "0",
      "is_cms_user": "0",
      "is_reserved": "1",
      "name": "new_organization_5", // note the appended ID, 'new_organization' should be the value here
      "is_proximity_search": "0",
      "is_error": 0
  }
  
  ```
  
  Digging [here](https://github.com/civicrm/civicrm-core/blob/8b1e918c8246907e2b7dd38d94662a24116e65e4/js/Common.js#L831), [here](https://github.com/civicrm/civicrm-core/blob/8b1e918c8246907e2b7dd38d94662a24116e65e4/CRM/Core/Resources.php#L686) and [here](https://github.com/civicrm/civicrm-core/blob/ac525af0bc91528c3d3c2706fabaffef15b736e6/CRM/Core/BAO/UFGroup.php#L3303) found that when the method to get the profile links is called with no params, the profiles names are hardcoded to the default `'new_individual', 'new_organization', 'new_household'`
  
  To fix it you'll need to revert back the profile "name" either via the API explorer:
  
  ```
  $result = civicrm_api3('UFGroup', 'create', array(
      'sequential' => 1,
      'id' => 5,
      "is_active": "1",
      "group_type": "Organization,Contact",
      "title": "New Organization",
      "add_captcha": "0",
      "is_map": "0",
      "is_edit_link": "0",
      "is_uf_link": "0",
      "is_update_dupe": "0",
      "is_cms_user": "0",
      "is_reserved": "1",
      "name": "new_organization",
      "is_proximity_search": "0",
  ));
  
  ```
  
  Or if you have access to and you feel more comfortable, querying the database directly:
  
  ```
  update civicrm_uf_group set name="new_organization" where id=5;
  
  ```
  
  Hope that helps.
  
  > **Comments:**
  > **username_0**: Thank you, thank you! This was perfect. I used phpyadmin to query the statement you gave me, then clear cache in CiviCRM.  
  
  ---
  
  