Ticket #312 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Template editor opens without layout when opened from menu

Reported by: robert@… Owned by: robert@…
Priority: major Milestone: 0.6.5
Component: Unknown Version: 0.6.3
Keywords: Cc: work@…
Product: Operating system:
URL: Hardware:

Description

When opening the template editor from the menu, the layout disappears. This probably has to do with #225

Change History

Changed 3 years ago by business@…

  • cc work@… added
  • status changed from new to assigned
  • owner changed from business@… to robert@…
  • milestone set to 0.6.4

According to Jeroen, this might be caused by the after interceptor not functioning properly (do you have to change the view earlier?)

Changed 3 years ago by work@…

The layout is dynamically changed in the model by an afterInterceptor in the  TemplateEditorController. While the code seems straightforward, it results in unexpected behaviour:

/**

  • Fires after every action and determines the layout of the page */

def afterInterceptor = { model, modelAndView ->

if (paramsstandalone? && paramsstandalone? == 'true') {

model.layout = 'main';
model.extraparams = ['standalone': 'true'];

} else {

model.layout = 'dialog';
model.extraparams = [];

}

}

Changed 3 years ago by robert@…

  • owner changed from robert@… to work@…

This has worked before perfectly (before the refactoring) and also works fine with the contacts. Please check what has changed during refactoring

Changed 3 years ago by work@…

  • owner changed from work@… to robert@…

Fixed in gdt 0.0.17 (GDT revision  r172)

Changed 3 years ago by work@…

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.