Skip to content
This repository

Nodes apply redirect #32

Merged
merged 1 commit into from over 2 years ago

2 participants

Pierre Martin Fahad Ibnay Heylaal
Pierre Martin

Redirect to the edition page when editing a node and "Apply"-ing changes to reload all data properly - closes #217

Fahad Ibnay Heylaal fahad19 merged commit 2f56e64 into from November 04, 2011
Fahad Ibnay Heylaal fahad19 closed this November 04, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Nov 04, 2011
Pierre Martin Redirect to the edition page when editing a node and "Apply"-ing chan…
…ges to reload all data properly - closes #217
437a481
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  controllers/nodes_controller.php
4  controllers/nodes_controller.php
@@ -220,7 +220,9 @@ public function admin_edit($id = null) {
220 220
             $this->data['Node']['visibility_roles'] = $this->Node->encodeData($this->data['Role']['Role']);
221 221
             if ($this->Node->saveWithMeta($this->data)) {
222 222
                 $this->Session->setFlash(sprintf(__('%s has been saved', true), $type['Type']['title']), 'default', array('class' => 'success'));
223  
-                if (! isset($this->params['form']['apply'])) {
  223
+                if (isset($this->params['form']['apply'])) {
  224
+                    $this->redirect(array('action'=>'edit', $this->Node->id));
  225
+				} else {
224 226
                     $this->redirect(array('action'=>'index'));
225 227
                 }
226 228
             } else {
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.