Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0004496Openbravo ERP00. Application dictionarypublic2008-07-23 17:522008-12-13 20:34
shuehner 
vmromanos 
normalminorhave not tried
closedfixed 
5
 
 
Core
No
0004496: Error Message on wrong SQL in Window 'Alert Rule' does stay on screen, after the error is resolved.
An error message in shown in this windows, when for example an invalid SQL expression is entered.

After the user fixes the sql expression the error message does stay on screen.
Open the 'Alert Window'
Modify some entry to contain an invalid sql expression
An error message is shown
Revert the sql expression to a valid state
The error message stays on screen
Check if there is some mechanism to undo the display of the error message.
No tags attached.
depends on feature request 0004497 scheduled rgoris Review the way error messages are shown and how they can be undown (hidden after the error is fixed) 
Not all the children of this issue are yet resolved or closed.
Issue History
2008-07-23 17:52shuehnerNew Issue
2008-07-23 17:52shuehnerAssigned To => cromero
2008-07-23 17:52shuehnersf_bug_id0 => 2025885
2008-07-23 17:56shuehnerRelationship addeddepends on 0004497
2008-07-30 17:36psarobeStatusnew => scheduled
2008-07-30 17:36psarobefix_in_branch => trunk
2008-08-26 10:13iperdomoAssigned Tocromero => vmromanos
2008-08-26 13:04svnbotCheckin
2008-08-26 13:04svnbotNote Added: 0008749
2008-08-26 13:04svnbotStatusscheduled => resolved
2008-08-26 13:04svnbotResolutionopen => fixed
2008-08-26 13:04svnbotsvn_revision => 6566
2008-12-08 17:59psarobeStatusresolved => new
2008-12-08 17:59psarobeResolutionfixed => open
2008-12-08 17:59psarobeNote Added: 0011029
2008-12-08 17:59psarobeStatusnew => scheduled
2008-12-11 19:35vmromanosNote Added: 0011210
2008-12-13 20:33psarobeStatusscheduled => resolved
2008-12-13 20:33psarobeResolutionopen => fixed
2008-12-13 20:34psarobeRegression testing => No
2008-12-13 20:34psarobeStatusresolved => closed

Notes
(0008749)
svnbot   
2008-08-26 13:04   
Repository: openbravo
Revision: 6566
Author: vmromanos
Date: 2008-08-26 13:04:52 +0200 (Tue, 26 Aug 2008)

Fixed bug 0004496: The message box now disappears when there is not an error.

---
U branches/r2.5x/src/org/openbravo/erpCommon/ad_callouts/SL_AlertRule_SQL.java
U branches/r2.5x/web/js/utils.js
---

https://dev.openbravo.com/websvn/openbravo/?rev=6566&sc=1 [^]
(0011029)
psarobe   
2008-12-08 17:59   
after changing the SQL, a message shows up, but when undo, the message still present
(0011210)
vmromanos   
2008-12-11 19:35   
The problem is that you have pressed "Ctrl+Z" to undo, and the Javascript doesn't detect that a change has been done in the element, so the event associated with this element is not triggered and, as consequence, the callout is not executed.

To test the fixed you will need to:
1- Introduce a wrong SQL sentence
2- Clic outside of the Sql textarea and an error will appear
3- Go again the Sql field and manually edit the query to correct it.
4- Clic outside of the Sql textarea and the error will disappear (if the query is OK)