Created
January 29, 2015 10:20
-
-
Save fvosberg/f8f8f32ea4d9bc69c419 to your computer and use it in GitHub Desktop.
Get an invalid object in the "show form" action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function initializeNewAction() { | |
if( !$this->request->hasArgument('newObject') && $this->request->getHttpRequest()->hasArgument('newObject') ) { | |
$this->request->setArgument('newObject', $this->request->getHttpRequest()->getArgument('newObject')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment