Updates to work with new member db tables
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 16 Feb 2016 15:28:23 +0000 (10:28 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 16 Feb 2016 15:28:23 +0000 (10:28 -0500)
models/admin/member/contacts.php
views/admin/member/contacts.html

index d98f99f..eb49c3b 100644 (file)
@@ -428,6 +428,10 @@ class GlmMembersAdmin_member_contacts extends GlmDataContacts
 
             }
 
+            // Also save the mmeber ID in a WordPress "option" in case someone clicks the "Member" sub-menu
+            update_option('glmMembersDatabaseMemberID', $this->memberID);
+
+
         } // if haveMember
 
 
index f1550ce..dbd58e9 100644 (file)
                 </tr>
             </table>
             <p><span class="glm-required">*</span> Required</p>
-            <input type="submit" name="Add new member">
+            <input id="updateContact" type="submit" value="{if $contactID && $contactInfo}Update contact{else}Add new contact{/if}">
         </form>  
         
     {/if}