View Issue Details

IDProjectCategoryView StatusLast Update
1798Composrimportpublic2016-04-23 09:23
ReporterChris Graham Assigned ToGuest  
PrioritynormalSeverityfeature 
Status newResolutionopen 
Summary1798: Transfer Comcode ownership properly when importing
DescriptionCurrently Comcode ownership goes to the user doing the importing. This can cause something of a problem if that user then is no longer having 'reuse attachments' permission, as attachments will stop showing up.

The ownership should carry over according to the user who owns the resource being imported OR even better the exact same owner it had in the source site (for an cms_merge import).
TagsNo tags attached.
Attach Tags
Time estimation (hours)5
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2015-02-08 17:48

administrator   ~2536

Various solutions to this. One is to call insert_lang in API functions with the submitter user parameter of the function. Another is to fix it up after the API call finishes, resetting it to the correct Comcode owner for the import. Another one is a mass fix afterwards, with queries like:
UPDATE cms_translate t JOIN cms_f_posts p ON p.p_post=t.id SET t.source_user=p.p_poster,text_parsed='' WHERE t.source_user<>p.p_poster;
These approaches are not necessarily mutually-exclusive.

Add Note

View Status
Note
Upload Files
Maximum size: 32,768 KiB

Attach files by dragging & dropping, selecting or pasting them.
You are not logged in You are not logged in. This means you will not get any e-mail notifications. And if you reply, we will not know for sure you are the original poster of the issue.

Issue History

Date Modified Username Field Change