comanage-dev - [comanage-dev] r389 - registry/trunk/app/View/EmailAddresses
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r389 - registry/trunk/app/View/EmailAddresses
- Date: Tue, 23 Oct 2012 08:56:16 -0400
Author: benno
Date: 2012-10-23 08:56:16 -0400 (Tue, 23 Oct 2012)
New Revision: 389
Modified:
registry/trunk/app/View/EmailAddresses/fields.inc
Log:
Fix rendering of verified field on add new email address (CO-494)
Modified: registry/trunk/app/View/EmailAddresses/fields.inc
===================================================================
--- registry/trunk/app/View/EmailAddresses/fields.inc 2012-10-22 18:58:34
UTC (rev 388)
+++ registry/trunk/app/View/EmailAddresses/fields.inc 2012-10-23 12:56:16
UTC (rev 389)
@@ -96,7 +96,14 @@
<?php print _txt('fd.email_address.verified'); ?>
</td>
<td>
- <?php print ($email_addresses[0]['EmailAddress']['verified'] ?
_txt('fd.yes') : _txt('fd.no')); ?>
+ <?php
+ // For an add, verified is by definition no and can't (currently,
anyway) be set manually.
+ // This will be caught by $email_addresses being null.
+
+ print (isset($email_addresses[0]['EmailAddress']['verified'])
+ && $email_addresses[0]['EmailAddress']['verified']
+ ? _txt('fd.yes') : _txt('fd.no'));
+ ?>
</td>
</tr>
<tr>
- [comanage-dev] r389 - registry/trunk/app/View/EmailAddresses, svnlog, 10/23/2012
Archive powered by MHonArc 2.6.16.