It seems that in some cases template manager loads a wrong template.
Consider such sequence of steps:
1) user creates template named “template1” in template group “my_templates”;
2) user creates template named “template2” in template group “my_templates”;
3) user types a string “code1” in template1 and checks “Save Template as File” and clicks “Update” button.
4) user types a string “code2” in template2 and checks “Save Template as File” and clicks “Update” button.
5) user deletes template1;
6) user renames template2 and gives it the name “template1”.
Now user expects that the template having the name “template1” has inside the string “code2”, but when he opens it he finds the string “code1” instead.
Is it the right behavior? Or maybe it is a bug? template1 was deleted, its code should have been destroyed, so why its code shows up when template2 was renamed?
I use EE v1.7 build 20101018.