Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Fix the controller save action
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Jul 9, 2016
1 parent c7bb0f0 commit 75816c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/RetourController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function actionEditRedirect(array $variables = array())
/* -- Give us something to edit */

$redirectModel = new Retour_RedirectsModel();
$redirectModel->redirectSrcUrl = craft()->request->getParam('redirectSrcUrl');
$redirectModel->redirectSrcUrl = craft()->request->getParam('defaultRedirectSrcUrl');
$redirectId = 0;
if (!empty($variables['redirectId']))
{
Expand Down
2 changes: 1 addition & 1 deletion templates/_edit.twig
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<!-- Needed for for Craft < 2.5 -->

{% if craft.app.version < 2.5 %}
<form id="edit-redirect-form" method="post" accept-charset="UTF-8" data-saveshortcut="1" data-saveshortcut-redirect="retour/redirects">
<form id="edit-redirect-form" method="post" accept-charset="UTF-8" data-saveshortcut="1" data-saveshortcut-redirect="retour/saveRedirect">
{% endif %}

<input type="hidden" name="action" value="retour/saveRedirect" />
Expand Down
2 changes: 1 addition & 1 deletion templates/statistics.twig
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<td style="width: 5%">{{ stat.hitCount }}</td>
<td style="width: 20%">{{ stat.hitLastTime |datetime }}</td>
<td style="width: 6%">{% if stat.handledByRetour %}<span style="color: green;">&#x2714;</span>{% else %}<span style="color: red;">&#x2716;</span>{% endif %}</td>
<td style="width: 5%">{% if not stat.handledByRetour %}<a href="{{ actionUrl('retour/editRedirect?redirectSrcUrl=' ~ stat.redirectSrcUrl) }}" class="add icon" title="{{ 'Add'|t }}"></a>{% endif %}</td>
<td style="width: 5%">{% if not stat.handledByRetour %}<a href="{{ actionUrl('retour/editRedirect', { defaultRedirectSrcUrl: stat.redirectSrcUrl }) }}" class="add icon" title="{{ 'Add'|t }}"></a>{% endif %}</td>
</tr>
{% endfor %}

Expand Down

0 comments on commit 75816c8

Please sign in to comment.