Hi,
wenn man im Layout-Template unter dem Menü Admin einen Platzhalter zwischen zwei vorhandenen Platzhaltern einfügen möchte (Klick auf "+" Icon) gibt es folgende MySQL-Fehlermeldung:
<copy>
SQL-Fehler: 1062
Fehlermeldung: Duplicate entry '2-3' for key 1
SQL: UPDATE layout_block SET lay_blocknr = lay_blocknr + 1 WHERE lay_id = 2 AND lay_blocknr > 1
Datei: home/WWW/vusaexpert.office.diomega.de/htdocs/_phenotype/admin/_k/layout_update.php
Zeile: 85
Aufruf: Zeile 85 in /home/WWW/vusaexpert.office.diomega.de/htdocs/_phenotype/admin/_k/layout_update.php
Methode: query
Aufruf: Zeile 21 in /home/WWW/vusaexpert.office.diomega.de/htdocs/_phenotype/admin/layout_update.php
Methode: require
</copy>
Grüße
Damdom
Logged In: YES
user_id=54973
Originator: NO
this happens only when there is more than 1 entry after the one you like to insert. The problem is runtime-only, because MySQL tries to update the lines and then runs into a UNIQUE Key problem (line 2 has the same value than line 3, that is not updated yet). Maybe this can be solved on MySQL level with a kindly modified statement, if not the lines have to be updated one-by-one from php.