Bug report:
Priority: Low
Environment:
Development Environment:
localhost
PHP version - 7.3 on docker
webserver: PHP built-in server
User account used: The main Admin account.
Installed add-ons: TickTackk\DeveloperTools
Steps to reproduce:
Method A:
1. log in to the admin panel
2. Click on the search icon on the top main bar or use the "/" shortcut key.
3. Search for an admin template (for an example: option_edit )
4. Make sure the selected style is something other than the master style if the template editor has opened up the option_edit template of the master style. (Change the style from master style to something else)
Method B:
1. log in to the admin panel > Appearance > Templates
2. Choose the style to Master the style
3. Click on the Admin tab for admin templates.
4. Randomly click on an admin template and go to the template edit form.
5. Change the style from the Master style to a different style.
Expected result:
Oops! We ran into some problems.
Templates in this style can not be modified. Please try another.
Actual result:
Error: Call to undefined method XF\Mvc\Reply\Error::getParam() in
src/addons/TickTackk/DeveloperTools/XF/Admin/Controller/Template.php at line
37
Stacktrace:
- TickTackk\DeveloperTools\XF\Admin\Controller\Template->actionEdit() in src/addons/SV/StandardLib/XF/Admin/Controller/Template.php at line 20
- SV\StandardLib\XF\Admin\Controller\Template->actionEdit() in src/XF/Mvc/Dispatcher.php at line 352
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
- XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
- XF\App->run() in src/XF.php at line 512
- XF::runApp() in admin.php at line 13
Visual Proof:
