Project

General

Profile

Actions

GX-Bug #66758

closed

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. / When creating a new language, the Content Manager entries are not copied correctly.

Added by Ronald Loyko almost 6 years ago. Updated almost 6 years ago.

Status:
Erledigt
Priority:
Dringend
Assignee:
Ahmed Hamouda
Category:
Adminbereich
Target version:
% Done:

0%

Estimated time:
Steps to reproduce:
Betroffene Versionen:
4.0.1.0, 4.1.1.0 rc1
Release Notes Langtext:

Beim Anlegen einer neuen Sprache werden die Content-Manager-Einträge nun richtig kopiert


Description

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;



Related issues

Copied from GX-Entwicklung - GX-Bug #66722: 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. / When creating a new language, the Content Manager entries are not copied correctly. ErledigtAhmed Hamouda

Actions
Actions #1

Updated by Ronald Loyko almost 6 years ago

  • Copied from GX-Bug #66722: 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. / When creating a new language, the Content Manager entries are not copied correctly. added
Actions #2

Updated by Ronald Loyko almost 6 years ago

  • Status changed from Gemeldet to Testing
Actions #3

Updated by Ahmed Hamouda almost 6 years ago

  • Assignee changed from Core-Entwickler to Ahmed Hamouda
Actions #4

Updated by Moritz Bunjes almost 6 years ago

  • Tags deleted (stable)
Actions #5

Updated by Ahmed Hamouda almost 6 years ago

  • Status changed from Testing to Erledigt
Actions

Also available in: Atom PDF