The example-filetodb.php script does not give correct
parent id's.
E.g. running the script out of the box for version 3.1.1
gives...
INSERT INTO phplayersmenu (id, parent_id, text, href,
title, icon, target, orderfield, expanded) VALUES ('10', '1',
'...GNU\'s Not Unix!', 'http://www.gnu.org/', 'The Free
Software Foundation', '', '', '10', '0');
INSERT INTO phplayersmenu (id, parent_id, text, href,
title, icon, target, orderfield, expanded) VALUES ('20', '1',
'Open Source', '', '', '', '', '20', '0');
INSERT INTO phplayersmenu (id, parent_id, text, href,
title, icon, target, orderfield, expanded) VALUES ('30', '1',
'Portals', '', '', '', '', '30', '0');
etc.....
i.e. all entries come out with a parent_id of 1.
Logged In: YES
user_id=65709
The attached patch should fix the bug.
The bug has been added in version 3.1.x
simply splitting the methods in more classes,
but leaving the ProcessLayersMenu class
without a usable parseCommon method.
Maybe a more clean fix can be found
for this bug.
I leave the bug open, I will close it
when I will release a new version
not affected by this bug;
in the meantime, you can use this patch.
Thank you so much for having discovered
this bug.
Marco Pratesi
Logged In: YES
user_id=65709
I have removed the attached patch
to avoid attaching it twice
it is available in the Patches section, at
http://sourceforge.net/tracker/index.php?func=detail&aid=931586&group_id=33447&atid=408329
Marco Pratesi
Logged In: YES
user_id=65709
Fixed in PHPLM 3.1.2, with a simpler patch,
that does not affect example-filetodb.php
Closed.
Marco Pratesi