Fix on update when member contact is editing.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 27 Feb 2017 20:27:50 +0000 (15:27 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 27 Feb 2017 20:27:50 +0000 (15:27 -0500)
Need to call editEntry again to fix status.

index.php
models/admin/packaging/index.php

index 5cdbca4..634b02b 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Packaging
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.2.8
+ * Version: 1.2.9
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersDatabasePackagingAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.2.8
+ * @version 1.2.9
  */
 
 /*
@@ -37,7 +37,7 @@
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.2.8');
+define('GLM_MEMBERS_PACKAGING_PLUGIN_VERSION', '1.2.9');
 define('GLM_MEMBERS_PACKAGING_PLUGIN_DB_VERSION', '1.1.6');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 9df2804..8cb4806 100644 (file)
@@ -225,6 +225,8 @@ class GlmMembersAdmin_packaging_index extends GlmDataPackages
 
                     // Tell the template the package was updated
                     $packageUpdated = true;
+                    // Get the package prepared for editing
+                    $packageInfo = $this->editEntry($packageID);
 
                 // Otherwise it didn't update, tell the template and let them try again
                 } else {