From 55d868687e053fa37ee0283d102129c6bab9a17b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Mon, 7 Oct 2019 14:44:47 -0400 Subject: [PATCH] Update add event form. Add event form need to call updateSlug after the event is created. --- index.php | 6 +++--- models/front/events/frontAdd.php | 2 ++ readme.txt | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index 1f48819..b8e3da0 100755 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Events Add-On * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.8.1 + * Version: 1.8.2 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.8.1 + * @version 1.8.2 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.8.1'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.8.2'); /** * Plugin DB Version */ diff --git a/models/front/events/frontAdd.php b/models/front/events/frontAdd.php index 4197800..d607bcc 100644 --- a/models/front/events/frontAdd.php +++ b/models/front/events/frontAdd.php @@ -530,6 +530,8 @@ class GLmMembersFront_events_frontAdd extends GlmDataEvents $eventDataFormat ); $eventID = $this->wpdb->insert_id; + // Update name slug. + $this->updateSlug( $eventID ); if ( $eventID ) { $locationData = array( diff --git a/readme.txt b/readme.txt index de760f4..5820331 100755 --- a/readme.txt +++ b/readme.txt @@ -25,6 +25,9 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress == Changelog == += 1.8.2 = +* Bugfix for new events from front end. + = 1.8.1 = * Add same columns to the admin event dashboard * Add Bulk Approval and Decline for event dashboard. -- 2.17.1