Adding a header to a form with language/theme selections causes the selectors to stop working

VictorUlloa, Sun Jan 09 2022, 12:53PM

Environment:
Windows 11 Pro x64 Spanish
PHsPeed V 2.1.0 B1 - X64 (build 269)
Default PHsPeed XAMPP installation (PHP 8.0 + MySQL)

Symptoms:
When adding a header (using a building block and putting it at the "header" section in Project > Properties > Layout) to a form that contains a theme and language selectors, both of them stops working, even if later I remove/delete the header.

Steps to reproduce:

  1. New project
  2. Create an empty form, no database connection, enable the canrunstandalone property
  3. Go to page design, put a grid (1 row + 4 colums in may case)
  4. Usng the Addtitional tab put a theme selector, a language selector, an edit box and a submit button in the form, one for column previously created
  5. Go to Project > Localization and do the usual steps: add two locales, then two language files, apply, go to "Translations" tab, enable multilingual, synchronize, translate some string, generate language files and accept.
  6. Run the form: test the theme and language selectors.  They must work.  The language and theme changes when you press the submit button, and the selections made are shown in both selectors (for exampley, if you choose theme "bootsrap" and language "spanish", both selectors show these values after the submit).
  7. Now, create a header building block.  Put a PanelHeader with some title on it.
  8. Go to project > properties > layout and add the header just created as the header and accept.
  9. Run again the form: the theme and language selectors doesn't work anymore.  Another behavior change is that the form reloads with the original theme and language in the selectors.
  10. Additionally, removing the header from Project > Layout, (even deleting the header block), has no effect: the selectors stopped working, even after closing and reopen PHsPeed, regenerating all modules.

I cleaned up temp files, restart the PC, adn generate all modules again with no changes: the selectors stopped working.  Weird detail: a backup of the working project versus the failing one shows no differences (binary compare) in the .css and .jstpl files of the module.

Re: Adding a header to a form with language/theme selections causes the selectors to stop working
administrator, Mon Jan 10 2022, 11:25AM

Moved to bugtracker
Re: Adding a header to a form with language/theme selections causes the selectors to stop working
VictorUlloa, Wed Jan 12 2022, 11:01PM

Solved in pre-release 270, Jan 12, 2022.