Explorar o código

Ticket #554 - Renamed Alert Name

AlexeyUna %!s(int64=9) %!d(string=hai) anos
pai
achega
9a5b32362c

+ 1 - 1
modules/boonex/se_migration/classes/BxSEMigAlertsResponse.php

@@ -21,7 +21,7 @@ class BxSEMigAlertsResponse extends BxBaseModTextAlertsResponse
     {
         parent::response($oAlert);		
 		
-		if (('system' == $oAlert -> sUnit && 'encrypt_password_after' == $oAlert -> sAction) || ('account' == $oAlert -> sUnit && 'edited' == $oAlert -> sAction))
+		if (('system' == $oAlert -> sUnit && 'encrypt_password_after' == $oAlert -> sAction) || ('account' == $oAlert -> sUnit && 'edit' == $oAlert -> sAction))
 						BxDolService::call($this -> MODULE, 'social_engine_response', array($oAlert));
     }
 }

+ 1 - 1
modules/boonex/se_migration/classes/BxSEMigModule.php

@@ -135,7 +135,7 @@ class BxSEMigModule extends BxBaseModGeneralModule
 		}		
 		else if (isset($oAlert -> aExtras['action']) && $oAlert -> aExtras['action'] == 'forgot_password'){
 		// set 0 for se_id - it means now member's password is encrypted using standard algorithm
-			$this -> _oDb -> updateSEId($oAlert -> iObject, 0);
+			$this -> _oDb -> updateSEId($oAlert -> iObject);
 		}				
 	}
 }

+ 1 - 1
modules/boonex/se_migration/install/sql/enable.sql

@@ -21,7 +21,7 @@ SET @iHandler := LAST_INSERT_ID();
 
 INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
 ('system', 'encrypt_password_after', @iHandler),
-('account', 'edited', @iHandler);
+('account', 'edit', @iHandler);
 
 -- GRIDS:
 INSERT INTO `sys_objects_grid` (`object`, `source_type`, `source`, `table`, `field_id`, `field_order`, `field_active`, `paginate_url`, `paginate_per_page`, `paginate_simple`, `paginate_get_start`, `paginate_get_per_page`, `filter_fields`, `filter_fields_translatable`, `filter_mode`, `sorting_fields`, `sorting_fields_translatable`, `visible_for_levels`, `override_class_name`, `override_class_file`) VALUES