View Issue Details

IDProjectCategoryView StatusLast Update
0001798Composrimportpublic2016-04-23 09:23
ReporterChris GrahamAssigned To 
SeverityFeature-request 
Status non-assignedResolutionopen 
Product Version 
Fixed in Version 
Summary0001798: 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.
Time estimation (hours)5
Sponsorship open

Activities

Chris Graham

2015-02-08 17:48

administrator   ~0002536

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.

Issue History

Date Modified Username Field Change