File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
ide-webapp/src/main/java/io/meeds/ide/portlet Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,6 @@ private void checkPreferences(RenderRequest request) throws PortletException {
119119 Widget widget = widgetService .getWidgetByPortletId (portletInstanceId );
120120 if (widget == null ) {
121121 widget = new Widget ();
122- Widget imported = fromJsonString (preferences .getValue (DATA_INIT_PREFERENCE_NAME , null ), Widget .class );
123- if (imported != null ) {
124- widget .setJs (imported .getJs ());
125- widget .setHtml (imported .getHtml ());
126- widget .setCss (imported .getCss ());
127- }
128122 widget .setPortletId (portletInstanceId );
129123 widget = widgetService .createWidget (widget , identity .getRemoteId ());
130124 }
@@ -134,7 +128,6 @@ private void checkPreferences(RenderRequest request) throws PortletException {
134128 ApplicationState state = applicationModel .getState ();
135129 Portlet prefs = getLayoutService ().load (state );
136130 prefs .setValue (WIDGET_ID_PARAM , String .valueOf (widget .getId ()));
137- prefs .setValue (DATA_INIT_PREFERENCE_NAME , null );
138131 layoutService .save (state , prefs );
139132 } catch (IllegalAccessException e ) {
140133 throw new PortletException ("User not allowed to change Widget settings" , e );
You can’t perform that action at this time.
0 commit comments