There are two little issues founded (reported as bug #13994)
EE2.1 + multiple site manager.
If the user will do the next sequence
* Open CP.
* Design->Template->New.
* Then fill up the next form with the form and noticed that he forgot switch to required current site.
At this moment url already has group_id=10 (where 10 is the group id of current site).
* So operator will switch the site
* Submit the form.
Form will be submitted with previous group_id = 10 but template will have site_id = second site.
Result: The code did not prevent this error. And this is first problem.
The next problem at cp/design.php Line Number: 3425. Those code does not validate any array keys and does not catch any exceptions. It does something like:
a[ b[ c[ “key1” ] ] ]Who knows will the C or B return any result or not.
Result: In case when template was created incorrectly - this existing code produce an exception:
A PHP Error was encountered
Severity: Notice
Message: Undefined index: 8
Filename: cp/design.php
Line Number: 3425If that is happen (It did happen for me). Use MySQL table browser and query form to find and eliminate the record witch has whrong pair of site_id and the group_id