Closed (fixed)
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2012 at 18:55 UTC
Updated:
26 Sep 2012 at 19:31 UTC
When cloning a map the machine name is automatically set to clone_of_<original-name> e.g. clone_of_default.
This leads to several problems:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'clone_of_default' for key 'PRIMARY': INSERT INTO {openlayers_maps} (name, title, description, data) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3); Array ( [:db_insert_placeholder_0] => clone_of_default [:db_insert_placeholder_1] ...
clone_of_clone_of_clone_of_default
It might be better to automatically fill in a machine name but let users change it if desired or needed.
Comments
Comment #1
polFixed, thanks !