Author: david
Date: Fri Oct 28 09:56:38 2011
New Revision: 10226
Log:
Explicitly call 'default' module in url helper. Fixes issue 2127
Modified:
trunk/apps/qubit/modules/default/templates/moveSuccess.php
Modified: trunk/apps/qubit/modules/default/templates/moveSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/default/templates/moveSuccess.php Fri Oct 28
09:23:46 2011 (r10225)
+++ trunk/apps/qubit/modules/default/templates/moveSuccess.php Fri Oct 28
09:56:38 2011 (r10226)
@@ -1,7 +1,7 @@
<h1><?php echo __('Move %1%', array('%1%' => render_title($resource))) ?></h1>
<div class="search">
- <form action="<?php echo url_for(array($resource, 'action' => 'move')) ?>">
+ <form action="<?php echo url_for(array($resource, 'module' => 'default',
'action' => 'move')) ?>">
<input name="query" value="<?php echo $sf_request->query ?>"/>
<input class="form-submit" type="submit" value="<?php echo __('Search')
?>"/>
</form>
@@ -16,7 +16,7 @@
<?php foreach ($parent->ancestors as $item): ?>
<?php if (isset($item->parent)): ?>
- <li><?php echo link_to(render_title($item), array($resource,
'action' => 'move', 'parent' => url_for(array($item, 'module' =>
'informationobject')))) ?></li>
+ <li><?php echo link_to(render_title($item), array($resource,
'module' => 'default', 'action' => 'move', 'parent' => url_for(array($item,
'module' => 'informationobject')))) ?></li>
<?php endif; ?>
<?php endforeach; ?>
@@ -40,7 +40,7 @@
<?php foreach ($results as $item): ?>
<tr class="<?php echo 0 == @++$row % 2 ? 'even' : 'odd' ?>">
<td>
- <?php echo link_to_if($resource->lft > $item->lft || $resource->rgt
< $item->rgt, render_title($item), array($resource, 'action' => 'move',
'parent' => url_for(array($item, 'module' => 'informationobject')))) ?>
+ <?php echo link_to_if($resource->lft > $item->lft || $resource->rgt
< $item->rgt, render_title($item), array($resource, 'module' => 'default',
'action' => 'move', 'parent' => url_for(array($item, 'module' =>
'informationobject')))) ?>
</td>
</tr>
<?php endforeach; ?>
@@ -49,7 +49,7 @@
<?php echo get_partial('default/pager', array('pager' => $pager)) ?>
-<?php echo $form->renderFormTag(url_for(array($resource, 'action' => 'move')))
?>
+<?php echo $form->renderFormTag(url_for(array($resource, 'module' =>
'default', 'action' => 'move'))) ?>
<?php echo $form->renderHiddenFields() ?>
--
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.