Projekt

Allgemein

Profil

GX-Bug #66722

Von Ulrich Wenk vor etwa 4 Jahren aktualisiert

Beim Anlegen eine neuen Sprache werden die Content-Manager Einträge nicht korrekt kopiert. Es werden einige Felder mit leerem Inhalt gefüllt die nicht leer sein dürfen. 

 Es fehlten z.B. die Felder content_position und content_type beim Kopieren der Einträge, werden diese Felder leer gesetzt, da diese nicht im SQL enthalten sind. 

 ___________ 
 When creating a new language, the Content Manager entries are not copied correctly. Some fields are filled with empty content that must not be empty. 

 For example, if the fields content_position and content_type were missing when the entries were copied, these fields are set to empty because they are not contained in SQL. 


 ` ` 
 // create additional content_manager records 
			 $copy_cm_query = "INSERT INTO " . TABLE_CONTENT_MANAGER . " (categories_id, 
								 parent_id, 
								 group_ids, 
								 languages_id, 
								 content_title, 
								 content_heading, 
								 content_text, 
								 sort_order, 
								 file_flag, 
								 content_file, 
								 content_status, 
								 content_group, 
								 content_delete, 
								 gm_link, 
								 gm_link_target, 
								 gm_priority, 
								 gm_changefreq, 
								 gm_last_modified, 
								 gm_sitemap_entry, 
								 gm_url_keywords, 
								 contents_meta_title, 
								 contents_meta_description, 
								 contents_meta_keywords) 
								 SELECT categories_id, 
									 parent_id, 
									 group_ids, 
									 " . $insert_id . ", 
									 content_title, 
									 content_heading, 
									 content_text, 
									 sort_order, 
									 file_flag, 
									 content_file, 
									 content_status, 
									 content_group, 
									 content_delete, 
									 gm_link, 
									 gm_link_target, 
									 gm_priority, 
									 gm_changefreq, 
									 now(), 
									 gm_sitemap_entry, 
									 gm_url_keywords, 
									 contents_meta_title, 
									 contents_meta_description, 
									 contents_meta_keywords 
								 FROM " . TABLE_CONTENT_MANAGER . " 
								 WHERE languages_id = " . $c_source_language_id; 
 ` `

Zurück