Skip to content

Commit

Permalink
[GovWayConsole]
Browse files Browse the repository at this point in the history
Risolto bug sull'utilizzo dei filtro dopo aver creato o modificato un oggetto: i filtri con postback ridirigevano erroneamente sulle pagine di 'Add', 'Change' e 'Delete' invece che sulla pagina 'list'.
  • Loading branch information
pintorig authored and andreapoli committed Jun 3, 2021
1 parent 59101d1 commit 413ed9c
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 15 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

* Rilasciata versione 3.3.4

2021-06-04 Giuliano Pintori <[email protected]>

* [GovWayConsole]
Risolto bug sull'utilizzo dei filtro dopo aver creato o modificato un oggetto.
I filtri con postback ridirigevano erroneamente sulle pagine di 'Add', 'Change' e 'Delete' invece che sulla pagina 'list'.

2021-06-04 Andrea Poli <[email protected]>

* [GovWayCore]
Expand Down
2 changes: 1 addition & 1 deletion ant/setup/ant/patch-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Esempi:
<equals arg1="${patchArchiveType}" arg2="runtimeRepository"/>
</or>
<then>
<var name="patchTmpArchive" value="${tmp_batch}/runtimeRepository"/>
<var name="patchTmpArchive" value="${tmp_batch}/gestoreRuntimeRepository"/>
<var name="patchTmpArchiveType" value="ear"/>
<foreach target="-patch-resource" param="patchResource" inheritall="true">
<path>
Expand Down
2 changes: 1 addition & 1 deletion tools/web_interfaces/lib/jsplib/full-list-noTable.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ String classPanelTitolo = mostraFormHeader ? "panelListaRicerca" : "panelListaRi
String [] values = filtro.getValues();
String [] labels = filtro.getLabels();
String selezionato = filtro.getSelected();
String selEvtOnChange = !filtro.getOnChange().equals("") ? (" onChange=\""+ Costanti.JS_FUNCTION_VISUALIZZA_AJAX_STATUS +"Change(document.form,'"+filterName+"')\" " ) : " ";
String selEvtOnChange = !filtro.getOnChange().equals("") ? (" onChange=\""+ Costanti.JS_FUNCTION_VISUALIZZA_AJAX_STATUS +"Change(document.form,'"+filterName+"',true)\" " ) : " ";
String classInput = filtro.getStyleClass();
String filterId = filterName + "__id";
%>
Expand Down
2 changes: 1 addition & 1 deletion tools/web_interfaces/lib/jsplib/full-list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ String classPanelTitolo = mostraFormHeader ? "panelListaRicerca" : "panelListaRi
String [] values = filtro.getValues();
String [] labels = filtro.getLabels();
String selezionato = filtro.getSelected();
String selEvtOnChange = !filtro.getOnChange().equals("") ? (" onChange=\""+ Costanti.JS_FUNCTION_VISUALIZZA_AJAX_STATUS +"Change(document.form,'"+filterName+"')\" " ) : " ";
String selEvtOnChange = !filtro.getOnChange().equals("") ? (" onChange=\""+ Costanti.JS_FUNCTION_VISUALIZZA_AJAX_STATUS +"Change(document.form,'"+filterName+"',true)\" " ) : " ";
String classInput = filtro.getStyleClass();
String filterId = filterName + "__id";
%>
Expand Down
15 changes: 15 additions & 0 deletions tools/web_interfaces/lib/jsplib/listElement.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,22 @@ function Esporta(tipo) {
};
function Change(form,dataElementName) {
Change(form,dataElementName,false);
}
function Change(form,dataElementName,fromFilters) {
if( fromFilters ){
if(form.action.endsWith('Add.do')){
form.action=form.action.replace('Add.do','List.do');
}
if(form.action.endsWith('Change.do')){
form.action=form.action.replace('Change.do','List.do');
}
if(form.action.endsWith('Del.do')){
form.action=form.action.replace('Del.do','List.do');
}
}
//aggiungo parametro per indicare che si tratta di postback e azzero idhid
addHidden(form, 'isPostBack' , true);
if(dataElementName!=null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,18 @@
*/
package org.openspcoop2.core.diagnostica.ws.server;

import org.openspcoop2.core.diagnostica.ws.server.filter.SearchFilterMessaggioDiagnostico;
import java.util.List;


import org.openspcoop2.core.diagnostica.MessaggioDiagnostico;

import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaServiceException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaNotFoundException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaMultipleResultException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaNotImplementedException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaNotAuthorizedException_Exception;

import javax.jws.soap.SOAPBinding.ParameterStyle;
import javax.jws.soap.SOAPBinding.Style;
import javax.jws.soap.SOAPBinding.Use;

import org.openspcoop2.core.diagnostica.MessaggioDiagnostico;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaNotAuthorizedException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaNotImplementedException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.exception.DiagnosticaServiceException_Exception;
import org.openspcoop2.core.diagnostica.ws.server.filter.SearchFilterMessaggioDiagnostico;

/**
* MessaggioDiagnosticoSearch
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@
*/

import java.io.Serializable;

import javax.xml.bind.annotation.XmlElement;
import org.openspcoop2.core.diagnostica.ws.server.filter.beans.DominioSoggetto;

/**
* DominioDiagnostico
Expand Down

0 comments on commit 413ed9c

Please sign in to comment.