Bug #88789
closedInclude basis template dos not respect change on new record
0%
Description
Create a New template record.
fill in a name - its required. Click on Close.
-> requester gives warning - OK. Save the record
(Open the Record again).
In field "Include basis template" add a Record
Click on the Close button
-> Even the record has been changed, the record will be closed without warning.
If the record has already a record saved, it works like expected.
Thanks for taking care about this
Christian.
Updated by Daniel Windloff over 5 years ago
Can be reproduced on current master.
The column "basedOn", table "sys_template" (type=group) does not set class "has-change" for "Browse for records" and "Add New Basis Template".
Updated by Riccardo De Contardi over 5 years ago
- Related to Bug #88875: Modal Page altered not shown everytime added
Updated by Riccardo De Contardi about 5 years ago
This issue
I tried the following tests on 9.5.9
Prerequisites:¶
- On a sysfolder > list view > create a new template record
- Add a title ("AAAAA"), click on "Save and Close".
Test 1¶
1) Open the template record "AAAAA"
1.1) Tab "Includes" > field Include Basis Template [basedOn]
> click on the "+" icon ("Add New Basis Template") to add a new template
2) fill in a title "BBBBB" for the new created template, save and close it
2.1) Now the "BBBBB" template is listed on the list Include Basis Template [basedOn]
3) Click on Close
Actual result¶
- The template "AAAAA" is closed
- The "BBBBB" template has been include, this means that the "AAAAA" template change has been saved without confirmation
Expected result¶
- The "Do you want to close without saving?" modal should be shown
Test 2¶
1) same sysfolder > list view > create a new template record "CCCCC"
1.1) Save it and close
2) Open the template record "AAAAA"
2.1) Tab "Includes" > field Include Basis Template [basedOn]
> click on the "folder" icon ("Browse for records") to add an existing template
2.2) Select "CCCCC"
2.3) Now the "CCCCC" template is listed on the list Include Basis Template [basedOn]
3) Click on Close
Actual result¶
- The "Do you want to close without saving?" modal is shown
Test 3¶
1) same sysfolder > list view > open the template record "AAAAA"
2) Tab "Includes" > field Include Basis Template [basedOn]
2.1) the list shows both "BBBBB" and "CCCCC" templates
2.2) Select one of the templates
3) Click on the arrows icons (e.g. "Move selected items upwards") and alter the order of the templates
4) Click on Close
Actual result¶
- The "Do you want to close without saving?" modal is shown
Test 4¶
1) same sysfolder > list view > open the template record "AAAAA"
2) Tab "Includes" > field Include Basis Template [basedOn]
2.1) the list shows both "BBBBB" and "CCCCC" templates
2.2) Select one of the templates
3) Click on the delete icon ("Remove selected items")
4) Click on Close
Actual result¶
- The "Do you want to close without saving?" modal is shown
Conclusion:¶
- the issue only affects the "+" button ("Add New Basis Template")
Updated by Andreas Kienast over 4 years ago
- Status changed from New to Closed
I cannot reproduce the reported issue.
@Riccardo: You won't get a notification on close when adding a new basis template (BBBBB) because on save of that new template it's automatically assigned to AAAAA.