Fri, 23 Mar 2018 05:48:23 +0000Update AD_MODULE version to 3.0PR18Q1.1 3.0PR18Q1.1
RM packaging bot <staff.rm@openbravo.com> [Fri, 23 Mar 2018 05:48:23 +0000] rev 33765
Update AD_MODULE version to 3.0PR18Q1.1

Wed, 21 Mar 2018 13:34:05 +0100fixed bug 38190: cannot restore pg dump
Asier Lostalé <asier.lostale@openbravo.com> [Wed, 21 Mar 2018 13:34:05 +0100] rev 33764
fixed bug 38190: cannot restore pg dump

When creating/updating functions in PostgreSQL, explicitily set search_path so
pg_dump + pg_restore is able to execute them in case its needed (ie. in check
constraints or indexes).

First time functions are updated search_path is added. In case function already
has it because of it was added by dbsm or manually, it is not modified, allowing
in this way manual changes to it in case it is required.

In addition, PL functions created in prescript that invoke other functions that
are not in pg_catalog schema do also define search_path.

Tue, 06 Mar 2018 14:10:50 +0100fixed bug 38057: prevents concurrent sessions for same user not working
Asier Lostalé <asier.lostale@openbravo.com> [Tue, 06 Mar 2018 14:10:50 +0100] rev 33763
fixed bug 38057: prevents concurrent sessions for same user not working

When login.limit.user.session is enabled, only one session per named user is
allowed. In case there is another session for the same user that's currently
logging in, a confirmation message appears to tell the user other session will
be cancelled.

After confirmation, login should be completed, but it failed displaying a blank
page.

The problem was caused because instead of resending a POST request to complete
login, a GET without param values was sent to LoginHandler.

Now it is fixed, in case of accepeted confirmation diagog, login will be sent
again.

Fri, 09 Mar 2018 08:37:05 +0100fixes bug 38086: Can't login if the user profile widget data contains apostrophes
Carlos Aristu <carlos.aristu@openbravo.com> [Fri, 09 Mar 2018 08:37:05 +0100] rev 33762
fixes bug 38086: Can't login if the user profile widget data contains apostrophes

The JS object used to populate the user profile widget, was being generated without escaping the data properly which could result in a wrong object definition in case of having special characters like apostrophes (').

To fix this issue we are now using the "js_string" built-in in the .ftl in order to escape the identifiers and labels of the user profile with the escaping rules of the JS language.

Wed, 07 Mar 2018 14:26:09 +0100fixed bug 38068: no view cache in browser for windows with server display logic
Asier Lostalé <asier.lostale@openbravo.com> [Wed, 07 Mar 2018 14:26:09 +0100] rev 33761
fixed bug 38068: no view cache in browser for windows with server display logic

Window having at least a field with server side display logic were not cached
in browser if there was no preference configuring that display logic.

The problem was cuased by an incorrect eTag calculation that if not preference
was set a date in future was set including current hour.

The fix:
* Simplifies eTag calculation for this case: if no preference defined, no need
to add any date.
* Uses for StringBuilder for String concatenation to slightly improve performance

Fri, 02 Mar 2018 12:54:08 +0100Fixed issue 37813: Support custom error pages
Javier Armendáriz <javier.armendariz@openbravo.com> [Fri, 02 Mar 2018 12:54:08 +0100] rev 33760
Fixed issue 37813: Support custom error pages

Fri, 02 Mar 2018 12:39:36 +0100Fixed issue 37917: Internal CSS are included in AD_TextInterfaces
Javier Armendáriz <javier.armendariz@openbravo.com> [Fri, 02 Mar 2018 12:39:36 +0100] rev 33759
Fixed issue 37917: Internal CSS are included in AD_TextInterfaces

Adding <style> tags along <script> as tags excluded from being parsed for the Translate class.

Fri, 23 Feb 2018 14:32:01 +0100Fixes issue 38004. Order Invoice Tax Lines before deleting.
David Miguelez <david.miguelez@openbravo.com> [Fri, 23 Feb 2018 14:32:01 +0100] rev 33758
Fixes issue 38004. Order Invoice Tax Lines before deleting.

The order in which the Invoice Tax Lines are deleted can affect
calculations done by the triggers. They must be deleted
in the correct order.

Tue, 27 Mar 2018 19:16:16 +0200fixes bug 38189: OBUISEL_Selector not displayed in tabs that shows 2.50 forms
Carlos Aristu <carlos.aristu@openbravo.com> [Tue, 27 Mar 2018 19:16:16 +0200] rev 33757
fixes bug 38189: OBUISEL_Selector not displayed in tabs that shows 2.50 forms

In 2.50 forms displayed inside 3.0 windows, a request to load the JS static resources is done but the SessionDynamic request is not. As a result, the OB object was generated partially. This caused JS errors when referencing to the missing data (for example when trying to get a label from the OB.I18N object).

This issue was fixed partially on issue #37303. The problem here is still reproducible because when opening a 2.50 form inside a tab, the window.LayoutMDI_windowObj has not being initialized because the getFrame('LayoutMDI') is not being invoked.

To fix the problem, now we are directly invoking getFrame('LayoutMDI') to get the OB object.

Tue, 27 Mar 2018 13:49:57 +0200fixes bug 38214: -Xdoclint:-missing required for generate javadoc in jdk8
Carlos Aristu <carlos.aristu@openbravo.com> [Tue, 27 Mar 2018 13:49:57 +0200] rev 33756
fixes bug 38214: -Xdoclint:-missing required for generate javadoc in jdk8

- Added -Xdoclint:-missing argument when generating the javadoc, unless we are in jdk7.
- Unified the generate.java.doc.jdk7 and generate.java.doc.jdk9 tasks, since [1] it is no longer needed to have those separate tasks.

[1] https://code.openbravo.com/erp/devel/pi/rev/c3a604592d8f59346c6a17cc7c511566602dc23c