Apperently this is a known issue and there's a bug trac on it.
The version in which it will be fixed was set in 1.3, which is kind of
strange imho...

In The mean time I've been experimenting with the afterSave of Acl and
with the code I added to this...
I've perfected this and ironed out some bumps I found, And I think it
should be stable now.

I've also changed a piece that was allready there:

$model->{$type}->save(array(
        'parent_id'             => Set::extract($parent, "0.{$type}.id"),
        'model'                 => $model->name,
        'foreign_key'   => $model->id)
);

I have edited to become:

$model->{$type}->save(array(
        'parent_id'             => Set::extract($parent, "0.{$type}.{$model-
>primaryKey}"),
        'model'                 => $model->name,
        'foreign_key'   => $model->id)
);

So the primary key field is now requested from the model instead of
just beeing set to the default fieldname of 'id'..

For the updated version of my solution to the 'not updating of parent
Acl nodes' please refer to the updated article, found at the same URL
as before: http://www.mythix.be/cakePHP/enhancing-cakephps-built-in-acl-bhaviour
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to