Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014274Openbravo ERPA. Platformpublic2010-08-24 13:082010-09-21 21:43
plujan 
shuehner 
immediatecriticalhave not tried
closedfixed 
20Community Appliance
2.50MP20 
2.50MP21 
Core
No
0014274: Update.database fails after disabling a module
After disabling a module, any update database will fail due local changes. See steps.
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
     ...
Regression
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 
Issue History
2010-08-24 13:08plujanNew Issue
2010-08-24 13:08plujanAssigned To => shuehner
2010-08-24 13:08plujanIssue generated from0014262
2010-08-24 13:08plujanRelationship addedrelated to 0014262
2010-08-24 13:13shuehnerRelationship addeddepends on 0014276
2010-08-24 16:19shuehnerTarget Version => 2.50MP21
2010-08-24 16:53hgbotCheckin
2010-08-24 16:53hgbotNote Added: 0030257
2010-08-24 16:53hgbotStatusnew => resolved
2010-08-24 16:53hgbotResolutionopen => fixed
2010-08-24 16:53hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fe89aad085261c99250844f6d5a2b6ddfd58f40c [^]
2010-08-24 18:16iperdomoNote Added: 0030263
2010-08-24 18:16iperdomoStatusresolved => closed
2010-08-25 07:09hudsonbotCheckin
2010-08-25 07:09hudsonbotNote Added: 0030284
2010-08-25 13:10psarobeversion => 2.50MP20
2010-08-25 13:10psarobeTag Attached: Regression
2010-08-25 13:12psarobeNote Added: 0030312
2010-08-25 13:21psarobeTag Detached: Regression
2010-08-25 13:21psarobeTag Attached: Regression QA
2010-08-25 13:21psarobeversion2.50MP20 => main
2010-09-13 12:38anonymoussf_bug_id0 => 3065181
2010-09-21 21:42psarobeTag Detached: Regression QA
2010-09-21 21:42psarobeTag Attached: Regression
2010-09-21 21:43psarobeversionmain => 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
---
(0030263)
iperdomo   
2010-08-24 18:16   
Tested on pi @ rev 215be63868e7
(0030284)
hudsonbot   
2010-08-25 07:09   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/fe89aad08526 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/8a6a35fc0751 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18218.obx [^]
(0030312)
psarobe   
2010-08-25 13:12   
This issue also affects when upgrading from MP20 to MP21 if you change the maturity status from General availability to test or controlled release