From 56caf850794587a8f3f644c6823daef2d659360f Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Tue, 13 Jan 2015 05:02:02 -0500
Subject: [PATCH] Fix so "set as default" option is hidden if identities_level > 1 (#1490226)

---
 program/steps/settings/save_identity.inc |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/program/steps/settings/save_identity.inc b/program/steps/settings/save_identity.inc
index 1584c5f..1582dfb 100644
--- a/program/steps/settings/save_identity.inc
+++ b/program/steps/settings/save_identity.inc
@@ -49,6 +49,11 @@
     }
 }
 
+// make the identity a "default" if only one identity is allowed
+if (IDENTITIES_LEVEL > 1) {
+    $save_data['standard'] = 1;
+}
+
 // unset email address if user has no rights to change it
 if (IDENTITIES_LEVEL == 1 || IDENTITIES_LEVEL == 3) {
     unset($save_data['email']);

--
Gitblit v1.9.1