Author: jablko
Date: Sun Oct 24 08:46:17 2010
New Revision: 8406
Log:
Parse URL, like commit 8387
Modified:
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
Modified:
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
==============================================================================
---
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
Sun Oct 24 03:36:31 2010 (r8405)
+++
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/actions/relatedAuthorityRecordComponent.class.php
Sun Oct 24 08:46:17 2010 (r8406)
@@ -98,7 +98,8 @@
{
foreach ($this->request->deleteRelations as $item)
{
- QubitRelation::getById($item)->delete();
+ $params = $this->context->routing->parse(Qubit::pathInfo($item));
+ $params['_sf_route']->resource->delete();
}
}
Modified:
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
==============================================================================
---
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
Sun Oct 24 03:36:31 2010 (r8405)
+++
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/editAction.class.php
Sun Oct 24 08:46:17 2010 (r8406)
@@ -165,7 +165,8 @@
{
foreach ($this->request->deleteRelations as $item)
{
- QubitRelation::getById($item)->delete();
+ $params = $this->context->routing->parse(Qubit::pathInfo($item));
+ $params['_sf_route']->resource->delete();
}
}
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" 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/qubit-commits?hl=en.