Comments (6)
I'm able to reproduce this issue, but one thing I'd like to clarify is if the user should be able to delete these templates in the UI. In our docs, we say:
Default templates are described in emailTemplates.xml. These templates are installed when the application is installed or a new locale is added.
These templates can not be edited or deleted. [...]
Many of the templates I'm testing with are in emailTemplates.xml
. Should the "Remove" button appear for these?
from pkp-lib.
Ready for review @asmecher:
- PR: #10108
from pkp-lib.
Would be also interested to know the intention whether there should be different behaviour between templates that are coming from emailTemplates.xml
and the ones that are added by the user.
I noticed there also should be option to reset template (manageEmails.tpl) - for some templates:
<pkp-button
v-if="item.key === currentMailable.emailTemplateKey && item.id"
:is-warnable="true"
@click="confirmResetTemplate(item)"
>
{translate key="common.reset"}
</pkp-button>
My first guess would be that the ones coming from emailTemplates.xml should be possible to edit and reset, but not remove. And the ones from user would be possible to edit and remove.
Maybe @NateWr remembers? :-)
from pkp-lib.
@Vitaliy-1 Or maybe you would know?
from pkp-lib.
(Meanwhile, I did merge the PR above. I agree that it's overspecific for the email template keys we use.)
from pkp-lib.
My first guess would be that the ones coming from emailTemplates.xml should be possible to edit and reset, but not remove.
Yes, those are default templates, it's impossible to modify them directly. They are stored in the email_templates_default_data
table. When user changes template through the UI or adds a new, it's recorded into email_templates
from pkp-lib.
Related Issues (20)
- Correct possible dropping of notnull from locale columns on upgrade HOT 3
- Duplicated entry on the list of OAI identifiers HOT 1
- Error Database Duplicate Entry HOT 2
- Pressing "Enter" key does not activate "Save" button in some places
- OJS 3.4.0-5 PHP 8.3 site structure, scripts and css lost behind a reverse proxy HOT 1
- [OJS 3.3.0.13] Cannot updated reviewed file, AJAX error HOT 3
- Upgrade Citations plugin to target 3.5 main branch HOT 1
- Error on Submission Deletion Due to Missing Notification Class
- Add queue job unit tests for 3.5
- Add FieldPassword Vue component HOT 9
- csrf token for API calls without user session HOT 5
- check for egrep in convertApacheAccessLogFile fails although file is present at location HOT 4
- Move ORCID connect button to user Identity tab
- DOI XML export errors are discarded at the API level
- Recaptcha and ORCID button on user registration form prevent form submission
- Deleting authenticated ORCIDs should revoke tokens
- Implement ORCID brand guidelines in ORCID functionality
- Use preg_grep instead of egrep in ConvertApacheAccessLogFile
- Fix ConvertApacheAccessLogFile CLI tool HOT 1
- Add support for public commenting on posted/published content
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkp-lib.