Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #11054: Template editor crashing. When an admin copies a …
…template and deletes logo.png the template editor is crashing and the template cannot be opened anymore.
- Loading branch information
08bbbc7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question : did it not Template::model roles to control file existence etc ?
08bbbc7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep you're right
08bbbc7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, just to be sure :)
But here : right : config.xml and files existence contradiction ....
08bbbc7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, the xml config file is supposed to become basic settings to fill a table in the database, and then provide user controls to it.
So the filed "files" should give the possibility to replace those files directly from the template configuration page. So, in the configuration page of the template, we'll have something like : "logo: ", and an input to change it.
I'm not reinventing the wheel, everything is inspired by the joomla templating system.