Fixed issues with dropping categories when updating a member fails.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 24 May 2016 20:13:42 +0000 (16:13 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 24 May 2016 20:13:42 +0000 (16:13 -0400)
classes/data/dataMemberInfo.php
lib/GlmDataAbstract/DataAbstract.php

index 25f2de2..46bc0ff 100644 (file)
@@ -366,8 +366,8 @@ class GlmDataMemberInfo extends GlmDataAbstract
             $r['bad_lat_lon'] = true;
         }
 
-        // Only run these tests for 'l' (getList), 'g' (getEntry), 'e' (editEntry)
-        if (!$this->doPostProcessing || ($a != 'l' && $a != 'g' && $a != 'e')) {
+        // Only run these tests for 'l' (getList), 'g' (getEntry), 'e' (editEntry), 'u' (updateEntry)
+        if (!$this->doPostProcessing || ($a != 'l' && $a != 'g' && $a != 'e' && $a != 'u')) {
             return $r;
         }
 
index 4961547..3adaddf 100755 (executable)
@@ -3727,6 +3727,11 @@ abstract class GlmDataAbstract
             // Get the data again for output
             $r['fieldData'] = $this->getEntry($id, $idField);
 
+        } else {
+
+            // We need to check for post processing here
+            $r['fieldData'] = $this->entryPostProcessing($r['fieldData'], 'u');
+
         }
 
         if (is_admin() && GLM_MEMBERS_PLUGIN_ADMIN_DEBUG_VERBOSE && class_exists('glmMembersAdmin')) {