uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
Open Software License 3.0
8.96k stars 463 forks source link

Email templates disappear when edited by another user #297

Closed Karlostavitch closed 3 years ago

Karlostavitch commented 4 years ago

Any email template created by or edited by another use disappear from the email templates list for anybody else except for that user. This is the latest build here -> https://cdn.uvdesk.com/uvdesk/downloads/opensource/uvdesk-community-current-stable.zip downloaded today.

you can manually browse to the template by manipulating the URL /en/member/template/edit/templateID to the said template but whoever modify's it last appears to be the only person who can see it in the webui.

SharePointPro commented 4 years ago

Im facing this same issue. Did you find a solution?

Karlostavitch commented 4 years ago

It appears as if when a user is editing or creating an email template the user_id field is set to that userID in the uv_email_templates table. Once set, only that user can view / edit that template, its otherwise filtered out for other agents. manually setting that field back to NULL on the table seems to make that template available again. MicrosoftTeams-image (3)

vaishaliwebkul commented 4 years ago

@Karlostavitch Thanks for reporting this bug. We will fix this bug soon.

papnoisanjeev commented 4 years ago

@Karlostavitch @SharePointPro @vaishaliwebkul

Locate the path in your project: vendor->uvdesk->core-framework->Repository/EmailTemplatesRepository.php

We have fixed it here. Now either You can replace the EmailTemplatesRepository.php from here or can make changes in existing EmailTemplatesRepository.php file of your project as we have done in file here.

We have fixed it in master and will start reflecting from next release.

vaishaliwebkul commented 3 years ago

fixed so closing this.