modules/org.openbravo.service.json/src-db/database/sourcedata/AD_MODULE.xml
author Carlos Aristu <carlos.aristu@openbravo.com>
Wed, 13 Nov 2019 19:14:34 +0100
changeset 36742 0a493e062362
parent 36732 d5bf8ecae79a
permissions -rw-r--r--
fixes bug 42270: window can be not initialized if default saved view is missing

Having a window with several saved view personalizations, if the default saved view is not provided by the WindowSettingsActionHandler then the header's grid was not properly initialized, leaving it in an inconsistent state which did not allow to save records.

Note that it already exists a mechanism that tries to avoid this scenario by deleting the configuration used to mark a personalization as default in case it does not exists (WindowPersonalizationEventHandler). But this inconsistent state can be also reached in case the window personalization is manually deleted through the database (i.e., by deleting the corresponding obuiapp_uipersonalization record).

To fix this problem now we are forcing the grid initialization in case the default view is not found.
<?xml version='1.0' encoding='UTF-8'?>
<data>
<!--F8D1B3ECB3474E8DA5C216473C840DF1--><AD_MODULE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <AD_MODULE_ID><![CDATA[F8D1B3ECB3474E8DA5C216473C840DF1]]></AD_MODULE_ID>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <NAME><![CDATA[JSON REST Webservice]]></NAME>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <VERSION><![CDATA[2.0.36548]]></VERSION>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <DESCRIPTION><![CDATA[Provides a JSON REST webservice for CRUD service requests]]></DESCRIPTION>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <HELP><![CDATA[Provides a JSON REST webservice for CRUD service requests. Both the servlet implementation (receiving HTTP REST requests in JSON) as the backend processing are provided.]]></HELP>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <URL><![CDATA[http://forge.openbravo.com/projects/openbravojsonrest]]></URL>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <TYPE><![CDATA[M]]></TYPE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <LICENSE><![CDATA[Licensed under the Openbravo Public License version 1.1.
You may obtain a copy of the License at http://www.openbravo.com/legal/license.html or in the legal folder of the Openbravo ERP core distribution.]]></LICENSE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <JAVAPACKAGE><![CDATA[org.openbravo.service.json]]></JAVAPACKAGE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <LICENSETYPE><![CDATA[OBPL]]></LICENSETYPE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <AUTHOR><![CDATA[Openbravo S.L.U. ]]></AUTHOR>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <ISTRANSLATIONREQUIRED><![CDATA[Y]]></ISTRANSLATIONREQUIRED>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <AD_LANGUAGE><![CDATA[en_US]]></AD_LANGUAGE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <HASCHARTOFACCOUNTS><![CDATA[N]]></HASCHARTOFACCOUNTS>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <ISTRANSLATIONMODULE><![CDATA[N]]></ISTRANSLATIONMODULE>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <HASREFERENCEDATA><![CDATA[N]]></HASREFERENCEDATA>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <UPDATEINFO><![CDATA[Bug fixing & new development for 3.0]]></UPDATEINFO>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <VERSION_LABEL><![CDATA[CI]]></VERSION_LABEL>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <ISCOMMERCIAL><![CDATA[N]]></ISCOMMERCIAL>
<!--F8D1B3ECB3474E8DA5C216473C840DF1-->  <ISTRIALALLOWED><![CDATA[N]]></ISTRIALALLOWED>
<!--F8D1B3ECB3474E8DA5C216473C840DF1--></AD_MODULE>

</data>