Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009285Openbravo ERPA. Platformpublic2009-06-02 12:032009-06-11 00:00
pjuvara 
AinhoaPagola 
lowminoralways
closedfixed 
20rPath Linux
2.50MP1 
pi 
Core
No
0009285: Poor error message when trying to delete current project phase
When you try to delete a project phase from a multiphase project, you get an error if the phase that you are trying to delete is the current phase of the project. This is correct because the project has a foreign key to the phase.

However, the error that you receive is a nasty foreign key violation and it is not clear to the user:
      
ERROR: update or delete on table "c_projectphase" violates foreign key constraint "cprojectphase_cproject" on table "c_project" Detail: Key (c_projectphase_id)=(459C20F33A7340E88F1267800175CA14) is still referenced from table "c_project".
1) Define a project type with at least one phase
2) Define a multiphase project
3) Set the project type to the one you defined in 1) and set the current phase
4) Navigate to Phases and try to delete the current phase
No tags attached.
related to defect 0009363 closed AinhoaPagola Foreing key violated: Contraint not registeted in AD_Message 
Issue History
2009-06-02 12:03pjuvaraNew Issue
2009-06-02 12:03pjuvaraAssigned To => rafaroda
2009-06-05 09:59rafarodaAssigned Torafaroda => alostale
2009-06-05 09:59rafarodaPrioritynormal => low
2009-06-05 09:59rafarodaStatusnew => scheduled
2009-06-05 09:59rafarodaCategory08. Project and service management => A. Platform
2009-06-08 10:13AinhoaPagolaRelationship addedrelated to 0009363
2009-06-08 10:19AinhoaPagolaAssigned Toalostale => AinhoaPagola
2009-06-08 18:33hgbotCheckin
2009-06-08 18:33hgbotNote Added: 0017113
2009-06-08 18:33hgbotStatusscheduled => resolved
2009-06-08 18:33hgbotResolutionopen => fixed
2009-06-08 18:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d7fc5e28a753e7da72573372c87c62c875e9dac1 [^]
2009-06-10 13:11sureshbabuStatusresolved => closed
2009-06-10 13:11sureshbabuNote Added: 0017178
2009-06-10 13:11sureshbabuFixed in Version => pi
2009-06-11 00:00anonymoussf_bug_id0 => 2804447

Notes
(0017113)
hgbot   
2009-06-08 18:33   
Repository: erp/devel/pi
Changeset: d7fc5e28a753e7da72573372c87c62c875e9dac1
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Mon Jun 08 18:27:48 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d7fc5e28a753e7da72573372c87c62c875e9dac1 [^]

Fixes bug 9285 and 9363: Poor error messages on foreign key violations

---
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0017178)
sureshbabu   
2009-06-10 13:11   
Tested error message has been fine tuned to
" This record cannot be deleted because it is associated with other existing elements. Please see Linked Items
 "