Bug #23667 Bug Fixed

Editing template group name with only character case change throws exception

Version: 4.3.2 Reporter: Jace Richardson

If you create a template group and then edit that group to change the case of a character, it throws an exception:

Original Template Group Name: “Testing” (accidentally capitalized it) Attempted Rename: “testing”

Folder in /system/user/templates was “Testing.group” Docker Centos Nginx stack

----------------------------------
Exception Caught
Cannot rename, destination already exists: user/templates/default_site/testing.group
ee/EllisLab/ExpressionEngine/Library/Filesystem/Filesystem.php:318

Stack Trace: Please include when reporting this error
#0 ee/EllisLab/ExpressionEngine/Model/Template/TemplateGroup.php(110): EllisLab\ExpressionEngine\Library\Filesystem\Filesystem->rename('...', '...')
#1 [internal function]: EllisLab\ExpressionEngine\Model\Template\TemplateGroup->onAfterUpdate(Array)
#2 ee/EllisLab/ExpressionEngine/Service/Model/Model.php(824): call_user_func_array(Array, Array)
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases