Openbravo Issue Tracking System - Openbravo ERP  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0014274 | Openbravo ERP | A. Platform | public | 2010-08-24 13:08 | 2010-09-21 21:43 | 
  | 
| Reporter | plujan |   | 
| Assigned To | shuehner |   | 
| Priority | immediate | Severity | critical | Reproducibility | have not tried | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 20 | OS Version | Community Appliance | 
| Product Version | 2.50MP20 |   | 
| Target Version | 2.50MP21 | Fixed in Version |  |   | 
| Merge Request Status |  | 
| Review Assigned To |  | 
| OBNetwork customer | No | 
| Web browser |  | 
| Modules | Core | 
| Support ticket |  | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0014274: Update.database fails after disabling a module | 
| Description | After disabling a module, any update database will fail due local changes. See steps. | 
| Steps To Reproduce | 1. Use an instance with a valid subscription and QuickStart installed. 
2. Go to module management and disable QuickStart 
3. Open a command line and execute: ant update.database 
4. An error will be displayed  
     [java] Checking if database structure was modified locally. 
     [java] Checking if data has changed in the application dictionary. 
     [java] 126617 INFO  - Change detected in table: AD_Module 
     ... 
 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | Regression | 
| Relationships | | related to  | defect  | 0014262 |   | closed  | shuehner  | Unable to update a 2.50MP20 community appliance to the candidate 2.50MP21  |  | depends on  | defect  | 0014276 |   | closed  | mtaal  | Need feature to disable maintaining audit info via dal for one request/dal-session  |  
  | 
| Attached Files |  | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2010-08-24 13:08 | plujan | New Issue |  | 
| 2010-08-24 13:08 | plujan | Assigned To |  => shuehner | 
| 2010-08-24 13:08 | plujan | OBNetwork customer |  => No | 
| 2010-08-24 13:08 | plujan | Issue generated from | 0014262 | 
| 2010-08-24 13:08 | plujan | Relationship added | related to 0014262 | 
| 2010-08-24 13:13 | shuehner | Relationship added | depends on 0014276 | 
| 2010-08-24 16:19 | shuehner | Target Version |  => 2.50MP21 | 
| 2010-08-24 16:53 | hgbot | Checkin |  | 
| 2010-08-24 16:53 | hgbot | Note Added: 0030257 |  | 
| 2010-08-24 16:53 | hgbot | Status | new => resolved | 
| 2010-08-24 16:53 | hgbot | Resolution | open => fixed | 
| 2010-08-24 16:53 | hgbot | Fixed in SCM revision |  => http://code.openbravo.com/erp/devel/pi/rev/fe89aad085261c99250844f6d5a2b6ddfd58f40c [^] | 
| 2010-08-24 18:16 | iperdomo | Note Added: 0030263 |  | 
| 2010-08-24 18:16 | iperdomo | Status | resolved => closed | 
| 2010-08-25 07:09 | hudsonbot | Checkin |  | 
| 2010-08-25 07:09 | hudsonbot | Note Added: 0030284 |  | 
| 2010-08-25 13:10 | psarobe | version |  => 2.50MP20 | 
| 2010-08-25 13:10 | psarobe | Tag Attached: Regression |  | 
| 2010-08-25 13:12 | psarobe | Note Added: 0030312 |  | 
| 2010-08-25 13:21 | psarobe | Tag Detached: Regression |  | 
| 2010-08-25 13:21 | psarobe | Tag Attached: Regression QA |  | 
| 2010-08-25 13:21 | psarobe | version | 2.50MP20 => main | 
| 2010-09-13 12:38 | anonymous | sf_bug_id | 0 => 3065181 | 
| 2010-09-21 21:42 | psarobe | Tag Detached: Regression QA |  | 
| 2010-09-21 21:42 | psarobe | Tag Attached: Regression |  | 
| 2010-09-21 21:43 | psarobe | version | main => 2.50MP20 | 
	| 
		Notes	 | 
	
		 
	 | 
	
		
		
			| 
				(0030257)
			 | 
		 
		
			| 
				hgbot   
			 | 
		 
		
			| 
				2010-08-24 16:53   
							 | 
		 
		 
	 | 
	
		
		
			
				Repository: erp/devel/pi 
Changeset: fe89aad085261c99250844f6d5a2b6ddfd58f40c 
Author: Stefan Hühner <stefan.huehner <at> openbravo.com> 
Date: Tue Aug 24 16:53:08 2010 +0200 
URL: http://code.openbravo.com/erp/devel/pi/rev/fe89aad085261c99250844f6d5a2b6ddfd58f40c [^] 
 
Fixed 14274: Fix 'db has local changes' after enabling/disabling a module 
When disabling or enabling a module do not update the 'updated'-column to not 
trigger the 'db has local changes' check. 
- Split out enable module code into enable helper function similar to disable 
- wrap enable/disable code in don't update audit info block to get calling 
  sequence: setPreventUpdateInfoChange(true), 
  change,flush (in finishEnabling), 
  setPreventUpdateInfoChange(false) 
 
--- 
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			| 
				Tested on pi @ rev 215be63868e7			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			| 
				This issue also affects when upgrading from MP20 to MP21 if you change the maturity status from General availability to test or controlled release			 | 
		 
		 
	 |